TinyMCE でカスタムの大文字タグを使用できるようにする方法を知っている人はいますか? TinyMCE は、大文字のタグが有効であると宣言されているにもかかわらず、大文字のタグを好まないようです。ここに私の TinyMCE 設定があります:
tinyMCE.init({
mode: "specific_textareas",
theme: "advanced",
language: "en",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statusbar_location: "bottom",
theme_advanced_buttons1: "bold,italic,|,sub,sup,|,charmap,|,table,|,code",
theme_advanced_path: false,
theme_advanced_resizing: true,
plugins: "fullscreen,paste,table",
paste_auto_cleanup_on_paste : true,
relative_urls: false,
width: "300",
height: "300",
theme_advanced_resizing_min_height : "10",
force_br_newlines : true,
force_p_newlines : false,
forced_root_block : '',
entity_encoding: "raw",
valid_elements : "B/strong,I/em,SUP/sup,SUB/sub",
extended_valid_elements: "CUSTOM"
})
次のようなタイプ
<CUSTOM>this is a custom tag</CUSTOM>
<CUSTOM> が削除されるため、機能しません。
init スクリプトを に変更すると、正常にextended_valid_elements: "custom"
動作します - 入力できます
<custom>this is a custom tag</custom>
<custom は保持されます。
誰も回避策を知りませんか?
ありがとう!