Hi,
I need to write plugin that will allow users to insert custom HTML code which in WYSIWYG mode will be displayed as placeholder's image, so they can delete it or move without HTML knowledge.
The problem I faced is that I dont know how to create elements on the fly in FCKXHtml.TagProcessors['div'].
I've tried to create new element via
but when I assign innerHTML to that element, it just ignores it and I end up having
When I use FCKXhtml.XML.createTextNode it just encodes all entities.
Is there any way to do it other than manually parsing string with raw HTML and creating elements on the fly?
Any advices on subject are highly appreciated.
Thank you in advance.
--
Maxim
I need to write plugin that will allow users to insert custom HTML code which in WYSIWYG mode will be displayed as placeholder's image, so they can delete it or move without HTML knowledge.
The problem I faced is that I dont know how to create elements on the fly in FCKXHtml.TagProcessors['div'].
I've tried to create new element via
node = FCKXHtml.XML.createElement('div') ; but when I assign innerHTML to that element, it just ignores it and I end up having
<div />in source mode.
When I use FCKXhtml.XML.createTextNode it just encodes all entities.
Is there any way to do it other than manually parsing string with raw HTML and creating elements on the fly?
Any advices on subject are highly appreciated.
Thank you in advance.
--
Maxim
