当您从word文档复制并粘贴到tinyMCE编辑器时,有时会出现不需要的<p>标记:
<p> </p>
<div class="starpasspro-example-question">
<p><strong>Example: Levels of strategy</strong></p>
<p>Microsoft is one of the world’s largest organisations, providing corporate solutions to businesses throughout the world to help them realise their fullest potential. At Microsoft, there are three levels of strategy as follows:</p>
</div>
<p> </p>
Run Code Online (Sandbox Code Playgroud)
这里生成的代码我想以<p>任何方式删除标签吗?
rka*_*yan 15
在你的添加这些行 tinymce.init({ });
例:
tinymce.init({
forced_root_block : "",
force_br_newlines : true,
force_p_newlines : false,
});
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
17370 次 |
| 最近记录: |