Hi, I have a requirement that I can't seem to find out how to implement it:
We use mathquill to represent formulas, but we save them using a custom tag. So it get's saved like <mathquill ....> in our rich text. In our cms, we use ckeditor to create this. In our actual program, we convert these tags to actual mathquill through Angular. At this moment, we can't show a proper formula in the ckeditor to really preview it to the content editor. What we want is that the actual mathquill is used in the editor to show the formula like it will be shown in the actual program, but when the rich text is saved, save it as <mathquill...>. Is this possible?
PS: We wrote an own plugin for the input of the formula.
Did you configure the
Did you configure the Advanced Content Filter (ACF) to accept the new tags?
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Hi, That's not the problem
Hi, That's not the problem here. What I want to know if it is possible to, for example, have <span...> while editing and have the actual data as <a...>. So can ckeditor convert this for us?
This is a pretty complicated
This is a pretty complicated so you would need to learn how CKEditor works, but it's doable. Actually, we even have similar plugins already, though nothing that do exactly what you want.
You'll be interested in reading about the Widget System. See code snippet and MathJax widget samples. You'll find their source code in CKEditor repository. Based on this you should be able to implement a widget which is upcasted from a custom tag and downcasted back to it. Note that custom tags need to be enabled in CKEDITOR.DTD.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Another thx for this info. It
Another thx for this info. It helped me creating the widget plugin and it's working nicely. These widgets seem to be very powerfull...