Hi, Everybody. WYSIWYG when insert html the head and meta not save. Only save the body. Thank you in advance
WYSIWYG when insert html the head and meta not save
Collapse
X
-
Supposedly CKEditor work quite well with EspoCRM, so you can give that a try when you do editing.
Personally I test out to create a template, and in term of function the online editor provide it is still quite limited so I stopped playing with it, maybe the installation version is better I don't know
Here is an online editor: https://onlinehtmleditor.dev/
And if you want to install it yourself:https://ckeditor.com/ckeditor-5/
I played with CKEditor for about 25 minutes so I might have missed out on what it can truly do.Comment
-
emillod and @Riad,
I did a bit searching and based on the last post I found the place, where the HTML is stripped out.
Go to
client/lib/summernote.min.js
find two instances of
Code:prettifyHTML
I did not yet test that thoroughly, so I don`t know, if it could affect in any negative way at any moment. Unfortunately there does not seem to be a possibility to set that function to false/true anywhere.
As well it might not be update safe.
Anybody could confirm, that tis will not be damaging anything? I am not skilled in Javascript.
Edit: testing further, it still strips HTML header tagsLast edited by shalmaxb; 08-31-2021, 08:57 AM.Comment
-
The problem is with the WYSIWYG renderer as mentioned. The out of the box config for magento is set when saving, to reset the page view back to the WYSIWYG view and that's when your code gets rewritten.
A real nasty hack is to disable the render or set it to default to html in the config menu.
Comment
Comment