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 Offline

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

Please create a new Ticket and we will get back to you as soon as we can.

#115708 editorIframe Problem sind 2.9.56

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 kreativ quadrat on Tuesday, 02 January 2024 18:01 GMT

kreativ quadrat
we save th form via ajax and have following script to get text from JCE
// Access the JCE editor iframe
var editorIframe = document.getElementById('description_de_DE_ifr');
if (editorIframe) {
var editorContent = editorIframe.contentWindow.document.body.innerHTML;
var descriptionInput = document.getElementById('description_de-DE');
descriptionInput.value = editorContent;
}

since 2.9.56 this do not work
what do you change since 2.9.56?
2.9.55 works
thx

Ryan
// Access the JCE editor iframe var editorIframe = document.getElementById('description_de_DE_ifr'); if (editorIframe) { var editorContent = editorIframe.contentWindow.document.body.innerHTML; var descriptionInput = document.getElementById('description_de-DE'); descriptionInput.value = editorContent; }
You sould not use a method like this to extract the editor contents, as this will get the "raw" editor contents which may contain system elements. To get the editor content use:

var ed =  Joomla.editors.instances['description_de_DE'];

if (ed) {
    var editorContent = ed.getValue();
}
or

var ed = tinymce.get('description_de_DE');

if (ed) {
    var editorContent = ed.getContent();
}

Ryan Demmer

Lead Developer / CEO / CTO

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

kreativ quadrat
works....thank you