The thing is, that you don't need to use jQuery at all to do the adding and removing of the classes. So you may want to check that the body class name you are selecting is correct using Internet Explorer's developer tool bar.
I haven't looked in CKEditor's code to see if it does change the body class name if IE is used, I don't see why it would but I would understand if it did, if CKEditor must do so to workaround some of the terrible bugs in IE. The only reason that I could think of that this method would not work in your case, is if the editarea iframe tag's class is not 'cke_show_borders' in IE. This method is similar to the way jQuery UI creates it's styles on the fly. When the event fires which indicates that the cursor should be returned to normal. $('iframe').contents().find('body.cke_show_borders').removeClass('custom-cursor') To set the new cursor style when your chosen event is triggered and then :. Then, when ever you want the cursor to change, use something like :.
For example : -Īs css in a file that you add to the contentsCss array.
Use ntentsCss to pre-define a single class for the body tag. My (Untested but very sound) solution to achieve your goal is as follows : applying style on html or iframe element of ckeditor - the result is that cursor changed in the entire editor apart from the editable area. binding action to onmouseover on ("body.cke_show_borders") element event that is changing cursor This line of code is working on every other part of my page, also in IE, that's why I am sure that is a ckeditor specific problem, it looks like ckeditor in ie is blocking or overriding this cursor style in some way.Ĭould you please tell me what I can do to make it work in IE? The style is applied and everything is working fine - the cursor is changed.īut in IE8 it does not work - the cursor is still the same, although the style attribute of this element is set correctly. I have managed to do that in Firefox using this simple jQuery command: I would like to change cursor icon in the EDITABLE AREA of ckeditor as aresult of some action from context menu.