如何在tinyMCE编辑器中设置填充?
我见过这样的答案:
body{ padding:0px }
Run Code Online (Sandbox Code Playgroud)
但它不应该在身体上?
你也可以尝试这些方法:
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}"
});
Run Code Online (Sandbox Code Playgroud)
请参阅文档以获取更多信息
| 归档时间: |
|
| 查看次数: |
6734 次 |
| 最近记录: |