Change CkEditor's background color with jQuery methods
Posted
by
user198003
on Stack Overflow
See other posts from Stack Overflow
or by user198003
Published on 2014-08-21T09:48:56Z
Indexed on
2014/08/21
10:20 UTC
Read the original article
Hit count: 197
I need to change background color of CkEditor, on some basic jQuery methods, like ready, change, etc.
Tried with things like:
$(document).on('click','.change-task-status', function(e){
$(".cke_editable").css("background-color", 'red');
})
... but nothing happens.
Can you help me how to achieve this?
Thank you in advance!
PS. yes, I do have jQuery adapter loaded on page.
UPDATE:
Some improvement is made - when I run next code in console, it changes background color
$( ".cke_wysiwyg_frame" ).contents().find( ".cke_editable" ).css( "background-color", "#BADA55" );
Now just to find why it does not execute in code...
© Stack Overflow or respective owner