You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#103601 Bug with Extended elements prevents save, close, ... buttons to work

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Ryan on Tuesday, 24 March 2020 20:08 GMT

amiras
The save, close, etc... buttons don't work if you put "<center>" in the Extended elements in editor parameters Seems a js error. This is the console log of chrome:

editor.min.js?5b5fdff1570ce4195ab4eac77f9376bb:2 Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Element': 'optgroup,select,datalist,option,isindex,menu,noscript,dd,dt,dl,caption,ul,ol,li,td,tr,th,tfoot,thead,tbody,table,hr,optgroup,select,datalist,option,isindex,menu,noscript,dd,dt,dl,caption,ul,ol,li,td,tr,th,tfoot,thead,tbody,table,hr,figure,nav,aside,hgroup,section,article,footer,header,fieldset,dir,center,blockquote,form,pre,address,div,p,h6,h5,h4,h3,h2,h1,figure,nav,aside,hgroup,section,article,footer,header,fieldset,dir,center,blockquote,form,pre,address,div,p,h6,h5,h4,h3,h2,h1,<center>,<center>,mce-comment,mce-comment' is not a valid selector.
    at Object.getActiveLine (/components/com_jce/editor/libraries/js/editor.min.js?5b5fdff1570ce4195ab4eac77f9376bb:2:11481)
    at Editor.<anonymous> (/components/com_jce/editor/libraries/js/editor.min.js?5b5fdff1570ce4195ab4eac77f9376bb:2:5763)
    at Dispatcher.dispatch (/components/com_jce/editor/tiny_mce/tiny_mce.js?5b5fdff1570ce4195ab4eac77f9376bb:7:6615)
    at Editor.save (/components/com_jce/editor/tiny_mce/tiny_mce.js?5b5fdff1570ce4195ab4eac77f9376bb:15:17721)
    at Object.getContent (/components/com_jce/editor/libraries/js/editor.min.js?5b5fdff1570ce4195ab4eac77f9376bb:2:16056)
    at Object.Joomla.submitbutton (/administrator/index.php?option=com_content&view=article&layout=edit&id=3089:150:13)
    at HTMLButtonElement.onclick (/administrator/index.php?option=com_content&view=article&layout=edit&id=3089:796:102)
getActiveLine @ editor.min.js?5b5fdff1570ce4195ab4eac77f9376bb:2
(anonymous) @ editor.min.js?5b5fdff1570ce4195ab4eac77f9376bb:2
dispatch @ tiny_mce.js?5b5fdff1570ce4195ab4eac77f9376bb:7
save @ tiny_mce.js?5b5fdff1570ce4195ab4eac77f9376bb:15
getContent @ editor.min.js?5b5fdff1570ce4195ab4eac77f9376bb:2
Joomla.submitbutton @ index.php?option=com_content&view=article&layout=edit&id=3089:150
onclick @ index.php?option=com_content&view=article&layout=edit&id=3089:796
The error happens in both, frontend & backend and the error doesn't appear when I change the editor to tinymce I have tried version 2.8.8, 2.8.9 & 2.8.10 rc2 with the same results If I erase the <center> element i works well :)

Ryan
The save, close, etc... buttons don't work if you put "<center>" in the Extended elements in editor parameters


Yes, this is the wrong syntax, and center is already present in the default extended elements.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

amiras
Yes you are right,I know.
Only that maybe will be better to alert the user, or strip the <>, than fail to save or close in the edit. no?

Ryan
Only that maybe will be better to alert the user, or strip the <>, than fail to save or close in the edit. no?


This will be fixed in the next update.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.