リッチエディタ(TinyMCE)で強調がタグになる件の対処

Pocket

久しぶりにMODxいじってます。

バージョンも上がって、かなりいい感じになってきてます。

ところで、V.1.0以降の、いつからかリッチエディタの[B]ボタン。強調表示させるところが、なんでか<B>~</B>になってしまい、<STRONG>~</STRONG>にならなくなっちゃったんです。

TinyMCE上のHTML表示では、<B>タグで表示され、TinyMCE下の「パス」表示の部分では、strong表示なんですよね。

なんでかなーとプラグイン設定をみてみたら、「プラグイン設定」のところのタイプミスが原因みたいでした。

「Cleanup」の項目のところ、ここは「enables」か「disables」が値として入るべきところなんですが、「enabled」「disabled」になってました。

ここのところを修正するため、プラグイン設定のパラメータ部分を書きなおします。

&customparams=Custom Parameters;textarea;content_css : “assets/plugins/tinymce/style/content.css”,popup_css_add : “assets/plugins/tinymce/style/popup_add.css”,accessibility_warnings : false,valid_elements : “*[*]”,body_class:”content”, &tinyFormats=Block Formats;text;p,h2,h3,h4,h5,h6,div,blockquote,code,pre &entity_encoding=Entity Encoding;list;named,numeric,raw;named &entities=Entities;text; &tinyPathOptions=Path Options;list;rootrelative,docrelative,fullpathurl;rootrelative &tinyCleanup=Cleanup;list;enables,disables;enables &tinyResizing=Advanced Resizing;list;true,false;true &advimage_styles=Advanced Image Styles;text; &advlink_styles=Advanced Link Styles;text; &disabledButtons=Disabled Buttons;text; &tinyLinkList=Link List;list;enabled,disabled;enabled &webtheme=Web Theme;list;simple,editor,creative,custom;simple &webPlugins=Web Plugins;text;style,advimage,advlink,searchreplace,print,contextmenu,paste,fullscreen,nonbreaking,xhtmlxtras,visualchars,media &webButtons1=Web Buttons 1;text;undo,redo,selectall,separator,pastetext,pasteword,separator,search,replace,separator,nonbreaking,hr,charmap,separator,image,link,unlink,anchor,media,separator,cleanup,removeformat,separator,fullscreen,print,code,help &webButtons2=Web Buttons 2;text;bold,italic,underline,strikethrough,sub,sup,separator,separator,blockquote,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,styleselect,formatselect,separator,styleprops &webButtons3=Web Buttons 3;text; &webButtons4=Web Buttons 4;text; &webAlign=Web Toolbar Alignment;list;ltr,rtl;ltr

上のをコピペしてもいいですけど、編集箇所が3箇所だけですし、自分で探して書き換えた方が確実だと思います。

さらに、もう一点、なぜか出力したHTMLソースで、TinyMCEで書いた部分だけHTMLタグが大文字になっちゃうんだけど、これはなんでだろう???

いや、っていうか、TinyMCEを使った出力がXHTMLじゃないねコレ。HTMLでの出力みたい。

ん~~。

とりあえず、解決方法を見つけるまでリッチエディタは、まだまだ「おあずけ」かなぁ。

追記::

いやあ、日本公式フォーラムを見たら、対策がありましたw

日本語版同梱のTinyMCEプラグインを独立配布します

ここで配布されている TinyMCE をアップロードしたら、このエントリーの要望は全て達成されました。
なんか、無駄な作業をしちゃったな気分。。(ションボリ)

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です

このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください