TinyMCE 4链接列表下拉列表

时间:2014-08-20 14:51:59

标签: javascript jquery tinymce-4

您好我在定制的CMS中将TinyMCE迁移到第4版。我尝试使用链接插件和生成的link_list创建链接下拉列表,但无法使其正常工作。

代码如下所示:

tinymce.init({
selector: "#editor",
plugins: [
    ["advlist autolink link image lists charmap print preview hr anchor spellchecker"],
    ["searchreplace wordcount visualblocks visualchars code fullscreen"],
    ["save table contextmenu template paste textcolor"]
],
link_list: [
  {title: "HOME", value: "/"},
  {title: "Footer Content", value: "/footer-content/"},
  {title: "Employee Survey", value: "/employee-survey/"},
  {title: "NEWS", value: "/news/"},
  {title: "2 Col Simple", value: "/2-col-simple/"},
  {title: "2 Col 2", value: "/2-col-2/"},
  {title: "2 Col 3", value: "/2-col-3/"},
  {title: "2 Col", value: "/2-col/"},
  {title: "CONTACT US", value: "/contact-us/"}
],
theme: "modern",
inline: true,
resize: "both",
menubar: false,
fixed_toolbar_container: "#test_menu",       
toolbar1: "bold italic underline outdent indent alignleft aligncenter alignright alignjustify undo redo hr code link unlink image forecolor backcolor numlist bullist addimage", 
toolbar2: "fontselect fontsizeselect styleselect formatselect table",

虽然编辑器有效,但它并没有创建我期望插入link_list的下拉列表。

有没有人知道我做错了什么?

谢谢,

菲尔

0 个答案:

没有答案