在我的网站上我init()
一个TinyMCE实例,如下:
tinymce.init({
entity_encoding : "numeric",
selector: "textarea",
width : 800,
skin : "custom",
styles: {
"float": "right",
"margin": "0 10px 0 10px"
},
plugins: [
"advlist autolink lists link image charmap print preview anchor",
"searchreplace visualblocks code fullscreen",
"insertdatetime media table contextmenu paste"
],
toolbar: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image"
});
之后,如果有<textarea>
,我会像这样添加TinyMCE:
tinymce.EditorManager.execCommand("mceAddEditor", true, "text-area");
这没关系,但是它没有加载自定义皮肤和我想要使用的一些插件。它只是加载一个标准的TinyMCE,我似乎无法找出原因。