Hi guys,
Maybe my question is easy to solve, I was trying yesterday but it didn't pan out. Can you guys please help me?
I'm using Ckeditor by Jquery adapter and this is my code:
var self = this;
var ckEdtiorConfig = {
width: 600,
allowedContent: true,
removeButtons: 'CreatePlaceholder'
};
jQuery('textarea#Business_setting_default_quote_email').ckeditor(ckEdtiorConfig);
jQuery('button.quote-email').click(function() {
self.quoteEmail.editor.insertText($('#Quote_email_variable').val());
});
as you see I can acess editor property to insert string with click event. I know that we can use http://docs.ckeditor.com/#!/api/CKEDITOR.env-property-cssClass to add class, but how can I do it with Jquery adapter to add css class to my div that hold ckeditor?
<div id="cke_Business_setting_default_email_footer" class="cke_3 cke cke_reset cke_chrome cke_editor_Business_setting_default_email_footer cke_ltr cke_browser_webkit" dir="ltr" lang="en" role="application" aria-labelledby="cke_Business_setting_default_email_footer_arialbl" style="width: 600px;">
Thanks for reading.