Cant align image - Firefox and Chrome throwing exceptions

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
aa007
Forum Members
Forum Members
Posts: 31
Joined: Mon Jun 15, 2009 2:03 am

Cant align image - Firefox and Chrome throwing exceptions

Post 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.
aa007
Forum Members
Forum Members
Posts: 31
Joined: Mon Jun 15, 2009 2:03 am

Re: Cant align image - Firefox and Chrome throwing exception

Post by aa007 »

I see that there is a fix for this in TinyMCE vesion 4.5.6 - https://www.tinymce.com/docs/changelog/ ... arch302017
scooper
Forum Members
Forum Members
Posts: 242
Joined: Fri Dec 09, 2005 12:36 pm
Location: Marlow, UK

Re: Cant align image - Firefox and Chrome throwing exception

Post 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.
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1922
Joined: Mon Jan 29, 2007 4:47 pm

Re: Cant align image - Firefox and Chrome throwing exception

Post by Jo Morg »

Please post a bug report on the pertinent modules, thank you.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Cant align image - Firefox and Chrome throwing exception

Post by Rolf »

MicroTiny in CMSMS 2.2 runs with a tinymce version where this is already fixed
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Cant align image - Firefox and Chrome throwing exception

Post by Rolf »

tinymce core has been upgraded to 4.6.3 in the SVN for the TinyMCE module
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
User avatar
airelibre
Dev Team Member
Dev Team Member
Posts: 98
Joined: Tue Dec 01, 2009 3:42 pm
Location: Alsace // France

Re: Cant align image - Firefox and Chrome throwing exception

Post by airelibre »

The new TinyMCE 3.2-beta1 includes the latest TinyMCE 4.6.4
Post Reply

Return to “The Lounge”