Akash
Akash

Reputation: 838

Customising tinymce with React

I am using the react component of tinymce. The docs are very brief about using tinymce with react and customising it. I am able to include the component but I would like to customise(with css) it. Any help is appreciated. If it is not possible to customise it, could someone suggest an alternative or a way to implement it on my own.

Upvotes: 0

Views: 908

Answers (1)

Prashanth Wagle
Prashanth Wagle

Reputation: 364

There is an option called content_css that enables you to style according to the surrounding context. You can read about it more by navigating to this link. Note that you can use an external CSS file or you can use inline CSS.

From the docs,

It is usually desirable that TinyMCE’s editable area has the same styling as the surrounding content. Consistent styling is achieved with the content_css option, which enables you to extend external CSS into the editable area.

Ps. I've assumed that you have used the latest version of TinyMCE (v5)

Upvotes: 0

Related Questions