Discussion:
ckgedit won't work with the artic Template and IE 11
Josef Meile
2014-05-12 11:44:37 UTC
Permalink
Hi



I'm using the dokuwiki binary from Red Hat Enterprise Linux Server release
6.5:

dokuwiki-0-0.21.20131208.el6



So it is the "Binky" version. I also installed the following packages:

* Arctic Template, version: 2012-09-14-stable

* ckgedit, version: 2014-05-10



Artic is the default template. For making it to work under Firefox 29, you
need to do this change:

http://www.freelists.org/post/fckglite/ckgEdit-Controls-wont-be-shown-with-t
he-arctic-template,2



However, under Internet Explorer 11, I don't see the editor nor a text area
where you can edit the document.



So, I activated the script errors and this is what I saw:



ckedit/ckeditor/ckeditor.js

Line: 922

Error: Unable to get property 'name' of undefined or null reference



Then I went to the IE debugger and saw that the anchor element: "a" is
undefined.



This is the line of code causing it:

if(a=b[d],!(c.blockless&&a.element in CKEDITOR.dtd.$block)&&(h=a.name,a=new
CKEDITOR.style(a),!c.filter.customConfig||c.filter.check(a)))



If I use the "dokuwiki" template, then it works. Forcing Internet Explorer
to render as IE 10 works as well.



I had a windows server with dokuwiki "Weatherwax RC1" and ckgedit 2013-3-20;
same version of artic and everything works there. So, it seems to be a
change in ckgedit.



Does somebody knows how to solve this problem? I really need to use the
artic template.



Best regards

Josef
Josef Meile
2014-05-12 12:38:45 UTC
Permalink
Hi,



Never mind, I just found in the forum that I had to show the editor page in
IE10 mode by adding this lines:

<?php if($ACT == 'edit'): ?>

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE10" />

<?php else: ?>

<!--[if IE]><meta http-equiv="X-UA-Compatible"
content="IE=edge,chrome=1" /><![endif]-->

<?php endif; ?>



Just after the <head> tag inside the arctic/main.php file.



Now it renders OK in IE 11.



Best regards

Josef



From: Josef Meile [mailto:jmeile-***@public.gmane.org]
Sent: Montag, 12. Mai 2014 13:45
To: 'fckglite-***@public.gmane.org'
Subject: ckgedit won't work with the artic Template and IE 11



Hi



I'm using the dokuwiki binary from Red Hat Enterprise Linux Server release
6.5:

dokuwiki-0-0.21.20131208.el6



So it is the "Binky" version. I also installed the following packages:

* Arctic Template, version: 2012-09-14-stable

* ckgedit, version: 2014-05-10



Artic is the default template. For making it to work under Firefox 29, you
need to do this change:

http://www.freelists.org/post/fckglite/ckgEdit-Controls-wont-be-shown-with-t
he-arctic-template,2



However, under Internet Explorer 11, I don't see the editor nor a text area
where you can edit the document.



So, I activated the script errors and this is what I saw:



ckedit/ckeditor/ckeditor.js

Line: 922

Error: Unable to get property 'name' of undefined or null reference



Then I went to the IE debugger and saw that the anchor element: "a" is
undefined.



This is the line of code causing it:

if(a=b[d],!(c.blockless&&a.element in CKEDITOR.dtd.$block)&&(h=a.name,a=new
CKEDITOR.style(a),!c.filter.customConfig||c.filter.check(a)))



If I use the "dokuwiki" template, then it works. Forcing Internet Explorer
to render as IE 10 works as well.



I had a windows server with dokuwiki "Weatherwax RC1" and ckgedit 2013-3-20;
same version of artic and everything works there. So, it seems to be a
change in ckgedit.



Does somebody knows how to solve this problem? I really need to use the
artic template.



Best regards

Josef

Loading...