TinyMCE: setting editor indents
3 answers
Take a look at the tinymce content_css config parameter . Using this setting you can set your own css stuff and overwrite tinymcedefault css. You can apply padding to any element you want (under the body)
+6
source to share
you can also try the following methods:
tinymce.init({
selector: 'textarea', // change this value according to your HTML
// set whatever class name you have that adds the padding
body_class: 'my_class',
// or attach your own css file (resolved to http://domain/myLayout.css)
content_css : '/myLayout.css',
// or finally, add your padding directly
content_style: "body {padding: 10px}"
});
see the docs for more information
0
source to share