Page 1 of 1

Cant align image - Firefox and Chrome throwing exceptions

Posted: Wed May 24, 2017 10:12 am
by aa007
Hi,

in MicroTiny (TinyMCE as well) I can't align any image in Firefox and Chrome (it works in Edge). I tried this also on demo installation on this site with the same result.
When I try to align (even on first click on the image) i get this exception in Firefox console (Firefox v. 53.0.3):

Code: Select all

IndexSizeError: Index or size is negative or greater than the allowed amount

And in Chrome (Chrome v. 58.0.3029.110):

Code: Select all

tinymce.min.js:8 Uncaught DOMException: Failed to execute 'setBaseAndExtent' on 'Selection': There is no child at offset 1.
    at k.<anonymous> (https://demos6.softaculous.com/CMS_Made_Simple/modules/MicroTiny/lib/js/tinymce/tinymce.min.js:8:19131)
    at t.i [as fire] (https://demos6.softaculous.com/CMS_Made_Simple/modules/MicroTiny/lib/js/tinymce/tinymce.min.js:6:31854)
    at k.fire (https://demos6.softaculous.com/CMS_Made_Simple/modules/MicroTiny/lib/js/tinymce/tinymce.min.js:7:1721)
    at p.i (https://demos6.softaculous.com/CMS_Made_Simple/modules/MicroTiny/lib/js/tinymce/tinymce.min.js:8:26332)
    at i (https://demos6.softaculous.com/CMS_Made_Simple/modules/MicroTiny/lib/js/tinymce/tinymce.min.js:2:5885)
    at HTMLHtmlElement.m (https://demos6.softaculous.com/CMS_Made_Simple/modules/MicroTiny/lib/js/tinymce/tinymce.min.js:2:6225)
I tried this in Extension -> MicroTiny WYSIWYG editor with demo text and image that is there.

Re: Cant align image - Firefox and Chrome throwing exception

Posted: Wed May 24, 2017 10:16 am
by aa007
I see that there is a fix for this in TinyMCE vesion 4.5.6 - https://www.tinymce.com/docs/changelog/ ... arch302017

Re: Cant align image - Firefox and Chrome throwing exception

Posted: Thu May 25, 2017 1:18 pm
by scooper
Thanks very much for this. I had a client point this issue out to me just yesterday and your fix seems to have sorted them out. Much appreciated.

s.

Re: Cant align image - Firefox and Chrome throwing exception

Posted: Thu May 25, 2017 1:35 pm
by Jo Morg
Please post a bug report on the pertinent modules, thank you.

Re: Cant align image - Firefox and Chrome throwing exception

Posted: Thu May 25, 2017 4:01 pm
by Rolf
MicroTiny in CMSMS 2.2 runs with a tinymce version where this is already fixed

Re: Cant align image - Firefox and Chrome throwing exception

Posted: Sun Jun 04, 2017 6:55 pm
by Rolf
tinymce core has been upgraded to 4.6.3 in the SVN for the TinyMCE module

Re: Cant align image - Firefox and Chrome throwing exception

Posted: Tue Jun 20, 2017 9:09 am
by airelibre
The new TinyMCE 3.2-beta1 includes the latest TinyMCE 4.6.4