我使用advlink插件运行TinyMCE 4.1.4。
根据许多网站(虽然我没有看到官方文档),tinymce.init中有一个名为advlist_number_styles的参数。例如:
advlist_number_styles: [
{ title: "Greek", styles: { listStyleType: "lower-alpha" } },
{ title: "Hebrew", styles: { listStyleType: "hebrew" } }
]
但是,它似乎根本不起作用,并产生错误:
在页面加载时,在advlist插件中出现此错误:
Uncaught TypeError: e.split is not a function
在启动TinyMCE时(在tinymce.min.js中):
Uncaught TypeError: Cannot read property 'isChildOf' of undefined
我初始化错了吗?我没有看到任何明显的错误。
以下是上下文中的示例:
plugins: [
"advlist code directionality paste textcolor colorpicker",
],
menubar: false,
advlist_number_styles: [
{ styles: { listStyleType: "" }, title: "Standard" }
],
toolbar1: "bold italic underline | fontsizeselect fontselect | bullist numlist",
toolbar2: "alignleft aligncenter alignright | ltr rtl | forecolor backcolor | mybutton1 mybutton2 mybutton3 mybutton4 | code",