【发布时间】:2012-05-31 19:44:58
【问题描述】:
我正在尝试为小 mce 创建动态生成的图标列表。我已经编写了所有相关的 php 函数,我通过以下代码调用该函数。
$.post(url_file, {
content_name: $class_name,
page_url: filePath,
app_code: app_code
},
function(data){
var buttonlist = data;
});
我需要传递以上 3 个参数才能获得这些图标。现在我有 buttonlist 。我尝试了document.write(buttonlist),但它给了我missing : after property id 错误。
我想在里面打印这个;
tinyMCE.init({
mode : "exact",
elements : "elm1",
theme : "advanced",
plugins : "Archiv,pagebreak,safari,spellchecker,pagebreak,
style,layer,table,save,advhr,advimage,advlink,
emotions,iespell,inlinepopups,insertdatetime,preview,
media,searchreplace,print,contextmenu,paste,
directionality,fullscreen,noneditable,visualchars,nonbreaking,
xhtmlxtras,template",
--> document.write(buttonlist);
theme_advanced_toolbar_location : "top",
您知道如何在 tinymce 代码中打印此值吗? 非常感谢帮助。
【问题讨论】:
标签: php jquery tinymce document