MagSafe
2008-09-02, 15:12
Hi all,
Is there a way to run an execCommand on an editable div?
The iFrame way of doing it is:
document.getElementById("myiframe").contentWindow.document.execCommand();
... but I can't figure out the correct way of doing the same thing on a div :confused:
Thanks for any help :)
Is there a way to run an execCommand on an editable div?
The iFrame way of doing it is:
document.getElementById("myiframe").contentWindow.document.execCommand();
... but I can't figure out the correct way of doing the same thing on a div :confused:
Thanks for any help :)