CKEditor Image Map Plugin (in progress, need help)
htmlreturn = '<map id="map01" name="map01"><area shape="rect" alt="" title="" coords="88,33,225,110" href="" target="" /><area shape="rect" alt="" title="" coords="129,187,131,187" href="" target="" /></map>'
var okListener = function(ev) {
this._.editor.insertHtml(htmlreturn);
CKEDITOR.dialog.getCurrent().removeListener("ok", okListener);
};
CKEDITOR.dialog.getCurrent().on("ok", okListener);Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMNSHTMLDocument.execCommand]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost:52693/ckeditor/ckeditor.js :: n :: line 85" data: no]
Re: CKEditor Image Map Plugin (in progress, need help)
htmlreturn = '<map id="map01" name="map01"><area shape="rect" alt="" title="" coords="88,33,225,110" href="" target="" /><area shape="rect" alt="" title="" coords="129,187,131,187" href="" target="" /></map>' var okListener = function(ev) { var htmlToInsert = htmlreturn; this._.editor.insertHtml(htmlToInsert ); CKEDITOR.dialog.getCurrent().removeListener("ok", okListener); }; CKEDITOR.dialog.getCurrent().on("ok", okListener);Re: CKEditor Image Map Plugin (in progress, need help)
var htmlreturn = '<map id="map01" name="map01"><area shape="rect" alt="" title="" coords="88,33,225,110" href="" target="" /><area shape="rect" alt="" title="" coords="129,187,131,187" href="" target="" /></map>', okListener = function(ev) { this._.editor.insertHtml(htmlreturn); CKEDITOR.dialog.getCurrent().removeListener("ok", okListener); }; CKEDITOR.dialog.getCurrent().on("ok", okListener);Not work? Or is it something other than you forgot to declare the variable?
Thanks,
Zanpakutō
Re: CKEditor Image Map Plugin (in progress, need help)
Re: CKEditor Image Map Plugin (in progress, need help)
How are you going with this plugin? I am working on something similar and would be willing to help.
Re: CKEditor Image Map Plugin (in progress, need help)
Re: CKEditor Image Map Plugin (in progress, need help)
Re: CKEditor Image Map Plugin (in progress, need help)
Re: CKEditor Image Map Plugin (in progress, need help)
Re: CKEditor Image Map Plugin (in progress, need help)