tinymce エディター用のいくつかの単純なプラグインを含めようとしています。改ページと印刷をより具体的にすると、すぐに、最初の行の editor_plugin.js に 2 つのエラーが出力されます。これはデフォルトのファイルであるため、この特定のファイルを制御することはできません。そのため、ファイルでトリガーするために何かをしていると想定しています。
エラーはこれです
SyntaxError: 予期しないトークン '<'
tinymceを初期化する私のコードは次のようになります
tinyMCE.init({
mode: "exact",
elements: "biography",
theme: "advanced",
width: "90%",
height: "300px",
plugins : "pagebreak, print",
pagebreak_separator : "<!-- my page break -->",
theme_advanced_buttons1: "bold,italic,underline,strikethrough,hr,blockquote,|,justifyleft,justifycenter,justifyright,justifyfull,outdent, indent,|",
theme_advanced_buttons2: "removeformat,forecolor,code,|,print",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "center",
theme_advanced_path: false,
theme_advanced_resizing: false,
cleanup_on_startup: true,
fix_list_elements: false,
fix_nesting: false,
fix_table_elements: false,
paste_use_dialog: true,
height: "500px",
width:"100%",
paste_auto_cleanup_on_paste: true,
});
これらのプラグインを使用できるように、このエラーを修正する方法はありますか?