Dhmltx editor issue

after I display editor in dhtmlxwindow as follows.

dhtmlx.image_path = “/media/dhtmlx/dhtmlxEditor/codebase/imgs/”;
editor = new dhtmlXEditor(“at_desc_editor”, “dhx_skyblue”);
editor.init()
editor.setContent(‘text’);

I can see the “text” in editor correctly but unable to see the cursor in the dhtmlx editor after clicking on the editor. after clicking on editor window, Cursor is positioned in the editor but not visible as If I start typing it types in the editor.

also editor starts behaving weird. I cannot reset bold, italics and underline formatting any more for newly typed text.

I tried putting editor.init() after setContent but that did not help either.

any solutions?

Could you please provide the complete demo to recreate the problem