From the editor [url]http://dhtmlx.com/docs/products/dhtmlxEditor/index.shtml%20product%20description[/url]:
I’ve been through every single page of documentation on the editor, and can’t find a single word on this. Any advice?
From the editor [url]http://dhtmlx.com/docs/products/dhtmlxEditor/index.shtml%20product%20description[/url]:
I’ve been through every single page of documentation on the editor, and can’t find a single word on this. Any advice?
setContextHTML loads Editor content by Ajax. And method getContent() returns Editor content - you may use dhtmlxAjax or any other approach send the content to server.
Thank you. I assume you meant setContentHTML, but loading the editor is not a problem. I was asking about “The component uses Ajax to save/update data on the server”.
Based on what you’ve said, it’s not the case that “the component uses Ajax”, but rather “one can then use Ajax to …”?
How does one know that the content of the editor has changed, such that one could initiate an Ajax call?
Sorry for the inconvenience.
There are really some discrepancies in the documentation.
It will be corrected in the near future.
Thanks Darya, I hope it can be clarified.
But my question still stands:
“How does one know that the content of the editor has changed, such that one could initiate an Ajax call?”
You can use our event listener:
dhtmlxEvent(editor.edDoc, "keyup", function(e){
//your code
});
Put there your ajax request.
But i recommend you use timeout for “keyup” to send less requests.