This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » Change background of tiny mce when...

Change background of tiny mce when error validation!

Change background of tiny mce when error validation!

Thursday 12 July 2012 4:07:05 pm - 1 reply

Hi folks,

I'd like to change the background of the tiny mce editor when there is an error when validating the textarea. I tried to change it with adding a class "error-validation-textarea" when the attribute has error validation and give the tinymce class the background color red.

But the problem is that the tinymce is loaded in an frame so i cant change it with html/css.

Do you have any ideas how I can change the backgroundfhe tinymce when error validation?


Greeting from Germany.


Thursday 12 July 2012 4:33:23 pm

Hi Tim,

Never to do something like that, but you could acces to frame with Javascript. For example :


So you could modify css class happy.gif Emoticon

In Jquery you could write something like that

$(window.parent.frames[0].document).ready(function() {

Hope it could help




Modified on Thursday 12 July 2012 4:35:04 pm by Philippe Vincent-Royol


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from