Add class to Rich Text Editor
Permalink
Hi
How can I add "form-control" class to RTE ?
I create textarea by:
How can I add "form-control" class to RTE ?
I create textarea by:
I need add "form-control" because I want to make the same alignment with other inputs.
I've paste your code
but WYSWIG editor doesn't run.
So do I need run wyswig editor explicitly via JavaScript?
I've paste your code
but WYSWIG editor doesn't run.
So do I need run wyswig editor explicitly via JavaScript?
You would create the Redactor rich text editor as before, but would target "div.ui-dialog .redactor-editor" with CSS.
div.ui-dialog .redactor-editor { /*insert the CSS declarations that .form-control uses*/ }
Ok, I copy CSS from Bootstrap to my own code.
But I think, I should add many classes to editor with copy CSS code.
But ok. Thanks for reply.
But I think, I should add many classes to editor with copy CSS code.
But ok. Thanks for reply.
I don't believe you can add classes.
What are you trying to accomplish by adding that class, is it the box shadow?
Here is an example of the Redactor output of the Feature block:
The div.redactor-editor is where Redactor is adding content. The text-area is not displayed.
I am assuming you want to do something like this?
Since you can't add the class, instead you could try targeting that div. To do that, you could use "div.ui-dialog .redactor-editor".