2013-08-28 47 views
0

我在我的网站上使用TinyMCE。 我有我的网站的根PHP文件,其中我有编辑和TinyMCE的设置也用户界面模板设置:TinyMCE模板文件位置

templates : [ 
    { 
      title : "Editor Details", 
      src : "template/theme.htm", 
      description : "Adds Editors Name and Staff ID" 
    } 

]

根/ TinyMCE的包含所有TinyMCE的文件。 根/模板包含theme.html

Theme.html

<div class="mceTmpl"> 
<p>Some code</p> 
</div> 

我的问题是 - 我应该把theme.html - 因为我看到标题,描述,但我仍然在身体越来越不确定。

回答

0

所以,我找到解决方案。它的工作与URL而不是src。所以在TinyMCE init中应该是:

templates : [ 
    { 
      title : "Editor Details", 
      url : "template/theme.htm", 
      description : "Adds Editors Name and Staff ID" 
    }