如果有人知道我的脚本出了什么问题,我将无法在tinymce编辑器中添加项目符号列表或号码列表。
我添加了如下插件:
但仍然无法正常工作,那么我必须要做的工作才能使启动项目符号和数字列表正确启动
这是我的tinymce编辑器脚本代码:
angular.module('ui.tinymce', [])
.value('uiTinymceConfig', {
theme: "modern",
height: 1000,
width: 1000,
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount fullscreen ",
"insertdatetime media table contextmenu directionality",
"emoticons paste textcolor code"
],
rel_list: [{ title: 'NoFollow', value: 'nofollow' }],
menubar: 'edit insert view format table tools ',
toolbar: "code|undo redo | fontselect fontsizeselect | forecolor backcolor |styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | print preview media | emoticons ",
connector: 'https://www.qxas.co.uk/admin/Upload/index',
templates: [
{ title: 'Test template 1', content: 'Test 1' },
{ title: 'Test template 2', content: 'Test 2' }
],
formats: {
bold : {inline : 'b' },
italic : {inline : 'i' },
underline : {inline : 'u'}
},
extended_valid_elements: '*[*]',
valid_children: "+body[style|script|link|rel],pre[script|div|p|br|span|img|style|h1|h2|h3|h4|h5],*[*]",
valid_elements: '*[*]',
force_p_newlines: false,
cleanup: false,
forced_root_block: false,
//forced_root_block: 'P',
content_css: "./assets/css/bootstrap.min.css,./assets/css/custom.css",
convert_urls : 0,
relative_urls: 'false',
remove_script_host: 'true',
document_base_url: 'https://www.qxas.co.uk/',
plugin_preview_width: "2000",
plugin_preview_height: "1000",
valid_children: "+a[id|div|i|span|img|p|ul|ol|li|h1|h2|h3|h4|h5|h5|h6]"
})
答案 0 :(得分:0)
这与您的custom.css
中的某物相关。我接受了您的设置,然后制作了TinyMCE小提琴:
http://fiddle.tinymce.com/p9gaab
如果仅从content_css
中删除custom.css,则会显示列表标记。该CSS文件的行数超过1,000行,因此您需要仔细研究一下,以确定发生这种情况的原因。