Hello Experts I need help
I'm using dojo Dijit Editor
"rich text editor" field in my widget, on page load I fetch HTML text from database and I set the rich text editor with the HTML normally, Then user can edit the displayed text and on page close I have to set the field in database with the source HTML of the edited text by user
the problem is when I do the following "myDB_txt=myEditor.getValue()
;" getValue()
doesn't return the complete HTML code it removes HTML tag and header tag and body tag which causes me troubles.
Simply use
myEditorWidget.get("Value")
where myEditorWidget refer to yourdijit/Editor
indtanceTo wrap this result you can define a function that return result wraped by html tags
Here is a Sample with wraped result Fiddle .
Otherwise If you want to get the whole HTML enclosing the content dijit ,
you will get access to it's
Iframe
( that has theid="editor_iframe"
) and then get get the htmldocument
of this last like bellow (here you should importdojo/query
package)Here is another Fiddle .