Daniel Kirsch wrote:

Pedro Valentini wrote:

Hi,
I think that many others people can need this functions, can someone help me to make it?


1. getHtml() - this function return the html source from the iframe, right to insert in database.
2. insertHtml("<h1>My Content</h1>") - this function insert in iframe a html code came from database.


What do you think? It is realy util or not?

function insertHtml(html) { iframe.contentDocument.body.innerHTML = html; }

I don't know if the original suggestion does but this code will confuse the editor's undo history...


--
Warning: May contain traces of nuts.
_______________________________________________
mozilla-editor mailing list
[email protected]
http://mail.mozilla.org/listinfo/mozilla-editor

Reply via email to