Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small problems (XH-DEPRECATED and <p>Tag) #13

Closed
lck-git opened this issue Aug 12, 2021 · 4 comments
Closed

Small problems (XH-DEPRECATED and <p>Tag) #13

lck-git opened this issue Aug 12, 2021 · 4 comments
Labels

Comments

@lck-git
Copy link

lck-git commented Aug 12, 2021

See https://cmsimpleforum.com/viewtopic.php?f=42&t=16338&p=76172#p76172

@cmb69
Copy link
Owner

cmb69 commented Aug 14, 2021

The initvar() calls are already removed as of 4f7092c. I need to do a new release. :)

Bin ich in der Quelltextanzeige und klicke OK, so fügt der Codeeditor einen p-Tag ganz am Anfang der Seite vor H1 ein:

<p> </p>
<h1>Content</h1>

I can reproduce with TinyMCE 4, but not with TinyMCE 5. Same for you? And actually, this is not a Codeeditor_XH issue, but rather a TinyMCE/Codemirror (plugin) issue.

@lck-git
Copy link
Author

lck-git commented Aug 14, 2021

I can reproduce with TinyMCE 4, but not with TinyMCE 5. Same for you?

Doch mit'm TinyMCE 5 auch.
Bestehende Seite > Bearbeiten > Ansicht, Quelltext > auf OK. Nochmal Ansicht > Quelltext. Da ist es.
Man kann es aber nicht speichern, erst wenn man noch etwas anderes am Text verändert.

And actually, this is not a Codeeditor_XH issue, but rather a TinyMCE/Codemirror (plugin) issue.

Ok, dann sollten wir das weitergeben an @manu37.

@lck-git
Copy link
Author

lck-git commented Aug 14, 2021

Ok, dann sollten wir das weitergeben an @manu37.

Und auch gleich die Lösung des Problems, die gibt's hier.

Hi ! I have the same problem. I use TinyMCE 4.9.3 - CodeMirror 5.44.0 - Firefox 65. Any idea to solve that problem ? Thanx !

Edit : Well, I think I solved the problem with a little conf of TynyMCE. I added thoses lines :

entity_encoding: "raw",
force_p_newlines : true,
forced_root_block : "",

I don't know if "raw" is required, but I didn't want HTML entities in my code, so it'just good for me. Hope this will help !

"entity_encoding": "raw", gibt es schon in der init_dropdown-codemirror.json muss also nur noch folgendes ergänzt werden.
"force_p_newlines" : true, "forced_root_block" : "",

Getestet, funktioniert! Kein p-Tag mehr am Anfang 🙂

@cmb69
Copy link
Owner

cmb69 commented Aug 14, 2021

Danke für die Recherche und das Weitergeben an XH. Ich schließe dieses Ticket dann mal.

@cmb69 cmb69 closed this as completed Aug 14, 2021
@cmb69 cmb69 added the invalid label Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants