Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

Upcoming Confluence Events