Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

jQuery to customize editor DOM elements needs page reload when in edit mode. Any idea?

stefan_baader_cpp_canon November 17, 2021

We want to customize the editor in our CONF 7.13.2 instance.
The script we implement f.e. in the Page Layout as an example:

<script>
AJS.toInit(function(){
window.parent.AJS.$('#rte-button-bold').css('background-color', 'yellow');
});
</script>

When creating a new page, the Bold button is shown in yellow as expected.
When saving the new page and editing again, the button is not yellow.
When reloading that page url in edit mode in the browser, the button is yellow again. It seems that the script is not loaded even we use toInit() when starting edit mode.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.13.2
TAGS
AUG Leaders

Atlassian Community Events