I am trying to implement an editor on a layout:
tCell = laySurvEditTop.cells(“a”);
if I use this:
introEditor = tCell.attachEditor({
content:introCont
, toolbar: true
, iconsPath: "/assets/DHTMLX51/imgs"
});
It works, but the introEditor.getContents() fails with:
Uncaught TypeError: Cannot read property ‘document’ of null
at dhtmlXEditor.getContent (dhtmlx.js:9)
at dhtmlXToolbarObject. (survEdit.js:606)
at dhtmlXToolbarObject.a.callEvent (dhtmlx.js:9)
at HTMLDivElement._doOnMouseUp (dhtmlx.js:9)
If I try to initialize editor in another way:
introEditor = new dhtmlXEditor({
parent: tCell
, content:introCont
, toolbar: true
, iconsPath: "/assets/DHTMLX51/imgs"
});
initialization fails with:
dhtmlx.js:9 Uncaught TypeError: Cannot read property ‘length’ of undefined
at new dhtmlXEditor (dhtmlx.js:9)
at dhtmlXForm. (survEdit.js:592)
at dhtmlXForm.a.callEvent (dhtmlx.js:9)
at dhtmlXForm. (dhtmlx.js:9)
at dhtmlXForm.a.callEvent (dhtmlx.js:9)
at HTMLDivElement.C.callEvent (dhtmlx.js:9)
at HTMLDivElement.c.firstChild.ontouchend.c.firstChild.onmouseup [as ontouchend] (dhtmlx.js:9)
dhtmlXEditor @ dhtmlx.js:9
(anonymous) @ survEdit.js:592
a.callEvent @ dhtmlx.js:9
(anonymous) @ dhtmlx.js:9
a.callEvent @ dhtmlx.js:9
C.callEvent @ dhtmlx.js:9
c.firstChild.ontouchend.c.firstChild.onmouseup @ dhtmlx.js:9
Line 592 is the "introEditor = new dhtmlxEditor … "
Please help!