loading editor

Hi,

I have a dhtmlxEditor and I want loading it with a text.

text in html that I want loading in the editor

var editor = new dhtmlXEditor(“inboxEditor”, “dhx_skyblue”);
editor.setIconsPath(“…/lib/dhtmlx/imgs/”);
editor.init();

When I init the editor, it doesn’t load this text. Why? How can I loading it?

Thanks

Hi,

you should use setContent method to add text in editor:

var editor = new dhtmlXEditor(“inboxEditor”, “dhx_skyblue”);
editor.setContent(“text in html that I want loading in the editor”);