Wordpresã®é«æ©è½ã¨ãã£ã¿ãTinyMCE Advancedãã¯ãã¡ããã¡ã便å©ã§ãããTypePadã®çµµæåãå
¥ãã
TinyMCE AdvancedっていうプラグインにTypePad絵文字追加したよ | PHPプログラマのバリ・ポジ情報ブログ
ã¯ãã£ã¨ä¾¿å©ã§ããããã¯ã©ã¤ã¢ã³ãããã«åã°ããã®ã§å
¥ãã¦ããæ¹ãå¤ãã¨æãã¾ãã
ãããããã®çµµæåå
¥ãã®TinyMCE(TinyMCE-AdvancedEmoji)ã¯æ´æ°ãé²ãã§ãããã3.2ã®ã¾ã¾ãªãã§ãããâ¦ã2011å¹´8æç¾å¨ãå
ã®ãã©ã°ã¤ã³ã¯3.4.2.1ãå
¬éãã¦ãã¾ãã
ããã§ãæ°ãããã¼ã¸ã§ã³3.4.2.1ã«çµµæåæ©è½ãä»ããæé ãã¾ã¨ãã¦ã¿ã¾ããã
GPLã£ã¦è¨ã£ã¦ãããã©ã¤ã»ã³ã¹çã«ã¯å¤§ä¸å¤«ã ããï¼ï¼ï¼ãªããåé¡ãã£ããæãã¦ãã ããâ¦ãï¼
ããã§æ´æ°ããã£ã¦ã大ä¸å¤«ã
ããã°ã©ã ã®ãã¦ã³ãã¼ã
ã¾ãã¯ãæ¬å®¶ TinyMCE Advancedããã¦ã³ãã¼ã
TinyMCE Advanced — WordPress Plugins
ãããããçµµæåå
¥ãã®TinyMCE(TinyMCE-AdvancedEmoji)ããã¦ã³ãã¼ã
TinyMCE AdvancedっていうプラグインにTypePad絵文字追加したよ | PHPプログラマのバリ・ポジ情報ブログ
- tinymce-advanced.3.4.2.1.zip(ãã¼ã¸ã§ã³ã«ããã¾ã)
- tinymce-advancedemoji.zip
ãå±éããã
ãã¡ã¤ã«ã¨ãã©ã«ãã®ã³ãã¼
ï¼ã®ä»¥ä¸ã®ãã¡ã¤ã«ã¾ãã¯ãã©ã«ããï¼ã®å±éãã©ã«ãã«ã³ãã¼ãé層ã«ã注æã
images\emoji.gif
mce\emoji
ãã¡ã¤ã«ãä¿®æ£
tadv_admin.php
139è¡ç® 追å
if ( in_array('emoji', $allbtns) ) $plugins[] = 'emoji';
145è¡ç® ä¿®æ£
é
åã®æå¾ã«ããã追å ã
, 'TypePad Emoji' => 'emoji'
è¡å ¨ä½ãæ¸ãã¨ã
$buttons = array( 'Horizontal rule' => 'hr', 'Hide next row' => 'wp_adv', 'Quote' => 'blockquote', 'Bold' => 'bold', 'Italic' => 'italic', 'Strikethrough' => 'strikethrough', 'Underline' => 'underline', 'Bullet List' => 'bullist', 'Numbered List' => 'numlist', 'Outdent' => 'outdent', 'Indent' => 'indent', 'Allign Left' => 'justifyleft', 'Center' => 'justifycenter', 'Alligh Right' => 'justifyright', 'Justify' => 'justifyfull', 'Cut' => 'cut', 'Copy' => 'copy', 'Paste' => 'paste', 'Link' => 'link', 'Remove Link' => 'unlink', 'Insert Image' => 'image', 'More Tag' => 'wp_more', 'Split Page' => 'wp_page', 'Search' => 'search', 'Replace' => 'replace', '<!--fontselect-->' => 'fontselect', '<!--fontsizeselect-->' => 'fontsizeselect', 'Help' => 'wp_help', 'Full Screen' => 'fullscreen', '<!--styleselect-->' => 'styleselect', '<!--formatselect-->' => 'formatselect', 'Text Color' => 'forecolor', 'Back Color' => 'backcolor', 'Paste as Text' => 'pastetext', 'Paste from Word' => 'pasteword', 'Remove Format' => 'removeformat', 'Clean Code' => 'cleanup', 'Check Spelling' => 'spellchecker', 'Character Map' => 'charmap', 'Print' => 'print', 'Undo' => 'undo', 'Redo' => 'redo', 'Table' => 'tablecontrols', 'Citation' => 'cite', 'Inserted Text' => 'ins', 'Deleted Text' => 'del', 'Abbreviation' => 'abbr', 'Acronym' => 'acronym', 'XHTML Attribs' => 'attribs', 'Layer' => 'layer', 'Advanced HR' => 'advhr', 'View HTML' => 'code', 'Hidden Chars' => 'visualchars', 'NB Space' => 'nonbreaking', 'Sub' => 'sub', 'Sup' => 'sup', 'Visual Aids' => 'visualaid', 'Insert Date' => 'insertdate', 'Insert Time' => 'inserttime', 'Anchor' => 'anchor', 'Style' => 'styleprops', 'Smilies' => 'emotions', 'Insert Movie' => 'media', 'IE Spell' => 'iespell', 'TypePad Emoji' => 'emoji' );
tadv_defaults.php
20è¡ç® ä¿®æ£
é
åã®æå¾(æå¾ã¯ã¯ã¤ãã®æååã«ãªã£ã¦ãã)ããä¸ã¤æåã«ããã追å ã
, 'emoji'
è¡å ¨ä½ãæ¸ãã¨ã
$tadv_allbtns = array( 'wp_adv', 'bold', 'italic', 'strikethrough', 'underline', 'bullist', 'numlist', 'outdent', 'indent', 'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'cut', 'copy', 'paste', 'link', 'unlink', 'image', 'wp_more', 'wp_page', 'search', 'replace', 'fontselect', 'fontsizeselect', 'wp_help', 'fullscreen', 'styleselect', 'formatselect', 'forecolor', 'backcolor', 'pastetext', 'pasteword', 'removeformat', 'cleanup', 'spellchecker', 'charmap', 'print', 'undo', 'redo', 'tablecontrols', 'cite', 'ins', 'del', 'abbr', 'acronym', 'attribs', 'layer', 'advhr', 'code', 'visualchars', 'nonbreaking', 'sub', 'sup', 'visualaid', 'insertdate', 'inserttime', 'anchor', 'styleprops', 'emotions', 'media', 'blockquote', 'separator', 'emoji', '|' );
tinymce-advanced.php
305è¡ç® ä¿®æ£
é
åã®æå¾ã«ããã追å ã
, 'emoji'
è¡å ¨ä½ã¯ã
$dolangs = array( 'advhr', 'advimage', 'advlink', 'searchreplace', 'style', 'table', 'xhtmlxtras', 'emoji' );
IE8ã§çºçããä¸å
·åã微修æ£
IE8ã§ãçµµæåã®æ¿å
¥ãæå³ããªãå ´æã«ãªã£ã¦ãã¾ãä¸å
·åãããã®ã§ããããã¤ãã§ã«ä¿®æ£ã
ããã®ãµã¤ãã«ãä¸è©±ã«ãªãã¾ããã
Web系な仕事のブログ的な:WORDPRESS 絵文字プラグインの不具合を直す
mce/emoji/js/emoji.js
9è¡ç®ãed.execCommandã®åã«è¿½å
if (tinymce.isIE) { ed.focus(); ed.selection.moveToBookmark(parent.tinymce.EditorManager.activeEditor.windowManager.bookmark); }
â»ãã ãä¸è¨ä¿®æ£å¾ãIE8ã§ã¯ï¼åº¦ã®æä½ã§çµµæåï¼ã³ä»¥ä¸ãé£ç¶ãã¦æ¿å ¥ãããã¨ãã§ããªããªãã
ã ããã§ãããæ¿å
¥ä½ç½®ãå¤ããããã¯è¯ããã¨ã
ã2011/08/22 追è¨ã
ohgumaãããããè²´éãªæ
å ±ãé ãã¾ããã®ã§è¿½è¨ã
Wordpress の TinyMCE Advanced プラグインの絵文字対応 - 熊工房 ohgumaの腹凹ませたい日記
以ä¸ã®ãµã¤ãã§ãã®ä¸å
·åãå®å
¨ã«ä¿®æ£ã§ããããã§ãã
http://ameblo.jp/webtech58/entry-10225702548.html
mce/emoji/js/emoji.js
9è¡ç®ãed.execCommand()ã®åã«è¿½å
tinyMCEPopup.restoreSelection(); // Fixes crash in Safari if (tinymce.isWebKit) ed.getWin().focus();
"Fixes crash in Safari"ã¨ããã®ã§ãSarafiã®ä¸å ·åãä¿®æ£ããã®ã§ãããããããã¯ç¢ºèªã§ãã¦ãã¾ããããç´ ç´ã«è¿½å ã
9è¡ç®ãed.execCommand()ã®å¾ã«è¿½å
tinyMCEPopup.storeSelection();
ã¡ããã¨æå³ã¯ããã£ã¦ãã¾ããããrestoreã§è¨æ¶ãã¦ãçµµæåã追å ããå¾ãstoreã§æ»ãã¦ãããã§ãããããã¨ããããIE8ã§åããã¨ã確èªã§ããã®ã§ããã¨ãã¾ãã
è²´éãªæ
å ±ãããããã§ãã
WordPress管çç»é¢ãããã©ã°ã¤ã³ãæå¹ã«ãã
ãã©ã°ã¤ã³ãæå¹ã«ããããè¨å®ã¡ãã¥ã®ä¸ã«ãããTinyMCE Advancedãããå¿
è¦ãªãã¼ã«ãã¼ã追å ãã¦ããã¾ãã
ãã¨ã¯ãããã¤ã追å ããã ãã§ãã
å§ç¸®ãã¡ã¤ã«ã®ãã¦ã³ãã¼ã
ã¯ã¦ãªã§ã¯å
¬éã§ããªããã§ããâ¦ããã ãã¾ã»ãã®ãµã¼ãã¼ã§ãã¦ã³ãã¼ãã§ããããã«æºåä¸ã§ãã
ä»ãã欲ããã£ã¦æ¹ã¯ç´æ¥è¨ã£ã¦ãã ããã
ãã¼ã¸ã§ã³ãä¸ãã£ããä¸ã®æ¹æ³ã§æ´æ°ãã¦ã¾ã誰ããå
¬éãã¦ããããã¨ãæå¾
ãã¦ãã¾ãã