在 TinyMCE 4.7.3 中,有没有办法设置水平线的样式(不使用源代码)?使用Horizontal Rule plugin,似乎我只能插入一个水平规则(即<hr />
)而没有别的。
如果没有,是否有另一种方法来创建具有某种样式(对齐、颜色、厚度等)的水平规则(不使用源代码)?
$(function() {
tinymce.init({
selector: 'textarea',
branding: false,
menubar: false,
toolbar_items_size: 'small',
theme: 'modern',
fontsize_formats: "8pt 9pt 10pt 12pt 14pt 18pt 24pt 36pt 48pt 72pt",
// use absolute URLs
relative_urls: false,
remove_script_host: false,
width: 580,
height: 400,
plugins: 'print preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template codesample table charmap hr pagebreak nonbreaking anchor toc insertdatetime advlist lists textcolor imagetools code contextmenu colorpicker textpattern help',
toolbar1: 'formatselect | fontselect fontsizeselect | bold italic strikethrough superscript subscript forecolor backcolor | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | hr link image table code | removeformat',
});
});