I am using Dmxzones Advanced HTML Editor 3 which inserts the following code:
<textarea id="advHTMLEdit1" name="advHTMLEdit1" class="dmxEditor" style="width:700px;height:300px"></textarea>
jQuery(document).ready(
function()
{
jQuery("#advHTMLEdit1").dmxEditor(
{"width": 700, "lineBreak": "p", "allowUpload": true, "uploadPath": "tmp", "subFolder": "1", "uploadProcessor": "php", "allowResize": true, "includeCss": "tutorial.css", "skin": "blue"
);
}
);
It inserts elements using the javascript execCommand() and also applies class styles to those elements.
With: jQuery("#advHTMLEdit1")[0]
I seem to be able to access it but nothing I have tried gives me access to the childNodes. I would like to be able to loop through each childNode as created by the editor, query the class and if it is a particular className then replace the HTML on that element.
I don't use jQuery and although I have tried many things myself I cannot seem to access any of those elements as created by the editor.