turnermm / ckgedit

CKEditor integrated into Dokuwiki
https://www.dokuwiki.org/plugin:ckgedit
GNU General Public License v2.0
60 stars 49 forks source link

jscript error on clicking geshi button #656

Closed jsheridan1980 closed 2 years ago

jsheridan1980 commented 2 years ago

when clicking on the geshi button the popup fail to render Release 2020-07-29 "Hogfather" Bootstrap3 Template v2021-03-11 (stable/20210311)

uninstalled ckgedit and reinstalled - till i found it's probably a jscript error:

Uncaught TypeError: Node.appendChild: Argument 1 is not an object. append http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:101 appendTo http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:75 dialog http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:604 openDialog http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:647 openDialog http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:647 e http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:259 y http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:259 v http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:259 onload http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:260 setTimeout handler*load/x/e.$.onload http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:260 x http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:260 load http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:261 openDialog http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:647 exec http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:643 exec http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:213 execCommand http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:285 click http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:685 execute http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:686 k http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:687 addFunction http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:32 callFunction http://<>/lib/plugins/ckgedit/ckeditor/ckeditor.js:32 onclick http://<>/doku.php?id=archlaptop&do=edit:1

disabled all dokuwiki extensions to rid out the possibility it is a incompatibility cleared cache; error in latest firefox + edge (same error) tried out also on a different page within the dokuwiki - same.

it tried somehow to add to "this" ("$": div#cke_dialog_title_119.cke_dialog_title) the param a which is "undefined".

b+"(?\x3d\s|$)"),"").replace(/^\s+/,""))?this.setAttribute("class",c):this.removeAttribute("class"));return this},hasClass:function(b){return a(this.$.className,b)},append:function(a,b){"string"==typeof a&&(a=this.getDocument().createElement(a));b?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)},appendText:function(a){null!=

Any idea how what went wrong?

edit: created a dokuwiki from scratch (downloaded again, only the ckgedit installed in a blank wiki) - same error

turnermm commented 2 years ago

Can't reproduce this either in firefox or chrome. It could be a conflict with botstrap3, though I did try it out in a fresh install of the template without trouble. You'll have to do some more searching.