PDA

View Full Version : Load content from textfile into extjs HTMLEditor



zagreberlin
1 Sep 2011, 3:58 PM
Hello people,

is it possible to load content from a textfile which is in a database into the extjs htmleditor?

greetings

skirtle
3 Sep 2011, 9:38 AM
Yes.

Assuming an Ajax-based app the technique would be:


Send an Ajax request to your server.
The server queries the database to access the text file. This is then bundled into the response of the Ajax request in whatever form is most convenient.
The success handler for the Ajax request sets the text on the HTMLEditor.