简体   繁体   English

如何自定义TinyMCE HTML输出?

[英]How to Customize TinyMCE HTML Output?

The theme for my site requires custom classes on HTML elements in order to display the styles properly (for example, the ul 's need to have the class list-style ). 我网站的主题需要HTML元素上的自定义类,以便正确显示样式(例如, ul需要具有类list-style )。 I can't change the style for all ul 's because they are different on the site. 我无法更改所有ul的样式,因为它们在网站上有所不同。 I would like to be able to change the HTML, giving all of the ul 's that class for example, when you press the unordered list button (I can't use the styles dropdown). 我希望能够更改HTML,例如,当您按无序列表按钮(我无法使用样式下拉列表)时,为所有ul都提供该类。 Where can I edit the plugin to change the HTML output for TinyMCE? 在哪里可以编辑插件以更改TinyMCE的HTML输出?

You can view the source of written markdown in tinymce. 您可以在tinymce中查看书面减价的来源。 In there you wilk see the html tags and you can add your styles there. 在这里,您将看到html标签,并且可以在其中添加样式。 It is all achieved by this plugin. 这都是通过此插件实现的。 Please refer to docs for further information. 请参考文档以获取更多信息。

https://www.tinymce.com/docs/plugins/code/ https://www.tinymce.com/docs/plugins/code/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM