-
- 5,888 Posts
what is a normal Rich Text Editor?
I think your issues are configuration - issues.
Here are two more RTEs:
https://modx.com/extras/package/tinymcewrapperdiy, which is highly configurable
and there is
https://www.modmore.com/redactor/
-
- 932 Posts
As Bruno commented above ^
Sounds like there is a better way to achieve what you're trying to do. ie: if its just an empty span that is inserted simply for styling purposes then it may be better to consider using a psuedo selector in CSS or even a chunk to toggle this style on or off with a TV.
If you're trying to give your client the option to insert a visual element then you can setup different formats in a dropdown in the rich text editor by following the documentation. You may find that you're better off using <div>'s rather than <span>'s though in that instance.
-
- 5,888 Posts
-
- 24 Posts
Bruno17, what should i do with TinyMCE to enable its editing template variables? I thought that such a feature should be enabled by default.
i have looked at the link you specified. thanks. i have not found a setting to enable or disable T.V. editing there.
-
- 932 Posts
-
- 5,888 Posts
Richtext - TVs should use the installed Richtext - Editor, by default. If not, this might be a bug with the installed Richtext - Editor.
And, of course, you will not find anything MODX - specific at the official TinyMCE - docs.
You will only find TinyMCE - specific stuff, there.
I allways try to avoid using Richtext - Editors at all, because they all tend to mess your input.
-
- 293 Posts
Quote from: tester3 at Nov 30, 2017, 01:21 PM
I thought that the editor should save the HTML code as i typed it into the source code area, but it (TinyMCE RTE) changes the code, making it absolutely crazy
This is precisely what rich text editors do... they change what you type and format it with tags.
They're not meant for code.
If you're looking for an editor for code I recommend Ace. (It's in the top 10 packages to download)