简体   繁体   English

使用带引号的bbcode插件时需要调整tinymce

[英]need to adjust tinymce when using bbcode plugin with quotes

I need help with TinyMCE Editor and it's BBCode plugin with Quotes. 我需要TinyMCE编辑器的帮助,它是带引号的BBCode插件。

All I want is for when I select text to be quoted to have all highlighted text wrapped in a single div. 当我选择要引用的文本以将所有突出显示的文本都包裹在一个div中时,我想要的就是这些。

The default quote style seems to give every line highlighted it's own span tag which is horrible and makes every line a new quote rather than all one block. 默认的报价样式似乎使每一行都突出显示了它自己的span标记,这很可怕,并使每一行都成为新的报价而不是所有的块。

Is that possible? 那可能吗?

I fear this is not possible out of the box. 我担心这是不可能的。 Problem here is that tinymce has a certain prcedure to style text (usualy spans). 这里的问题是,tinymce具有一定的样式来设置文本样式(通常是跨度)。 And there is no easy way to adjust that. 而且没有简单的方法可以进行调整。 For this you would need to fiddle around with the tinymce core class Formatter.js , which i do not advise. 为此,您需要弄乱tinymce核心类Formatter.js ,我不建议这样做。

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

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