有没有办法可以插入tinymce?

有没有办法可以插入tinymce?,第1张

概述我尝试着, 但它剥夺了它的:S 我的Tinymce init: // General options tinyMCE.init({ // General options mode : "textareas", theme : "advanced", plugins : "spellchecker,pagebreak,sty 我尝试着,

但它剥夺了它的:S

我的Tinymce init:

// General options      tinyMCE.init({        // General options        mode : "textareas",theme : "advanced",plugins : "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",// theme options        theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,Fontselect,Fontsizeselect",theme_advanced_buttons2 : "cut,copy,pastetext,pasteword,search,replace,bulList,numList,outdent,indent,blockquote,undo,redo,link,unlink,anchor,image,cleanup,help,code,insertdate,inserttime,forecolor,backcolor",theme_advanced_buttons3 : "tablecontrols,hr,removeformat,visualaID,sub,sup,charmap,ltr,rtl,fullscreen",theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,styleprops,spellchecker,cite,abbr,acronym,del,ins,attribs,template,insertfile,insertimage",theme_advanced_toolbar_location : "top",theme_advanced_toolbar_align : "left",theme_advanced_statusbar_location : "bottom",theme_advanced_resizing : true,// Skin options        skin : "o2k7",skin_variant : "silver",// Example content CSS (should be your site CSS)        content_CSS : "CSS/style.CSS",// Drop Lists for link/image/media/template dialogs        template_external_List_url : "Js/template_List.Js",external_link_List_url : "Js/link_List.Js",external_image_List_url : "Js/image_List.Js",media_external_List_url : "Js/media_List.Js",// Replace values for the template plugin        template_replace_values : {                username : "Some User",staffID : "991234"        }});
解决方法 我正在寻找相同的答案,发现上面提到的大部分链接都会引起误解(例如提及将新元素添加到valID_elements或者太CMS(drupal)-driven).所以我想添加这个更直接的答案:

在tinyMCE的默认设置上,在settings.valID_elements上没有iframe,扩展/自定义它的正确位置将是向settings.extended_valID_elements添加新的元素,如下所示:

tinyMCE.init({    ...    extended_valID_elements : "iframe[src|frameborder|style|scrolling|class|wIDth|height|name|align]"});

BTW,您可以在FireBUG或Chrome的开发工具控制台中轻松查看/调试tinyMCE的设置.只需键入:tinyMCE.settings.extended_valID_elements,查看您的设置是否正确加载.

总结

以上是内存溢出为你收集整理的有没有办法可以插入tinymce?全部内容,希望文章能够帮你解决有没有办法可以插入tinymce?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/web/1102574.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-28
下一篇2022-05-28

发表评论

登录后才能评论

评论列表(0条)

    保存