Чё то не могу комментарий оставить на этом блоге. Виснет наглухо.
Поэтому пишу в форуме.
Я тут задавал уже вопрос по поводу тонкой настройки TinyMCE. Так вот сам и отвечаю.
Заодно прокомментирую сообщение
Ведь всё гораздо интереснее…
В WordPress 2.0.4 используется TinyMCE версии 2.0RC4.
Полный вариант с плагинами берем здесь: http://prdownloads.sourceforge.net/tinymce/
Распаковываем хозяйство и выбираем от туда пригодные для нас плагины (выбор индивидуален 🙂
Нужный нам плагин, кстати, называется PASTE. Копируем его куда положено…
Берем отсюда плагин для тонкой настройки TinyMCE в WordPress: http://blog.labnotes.org/2005/12/26/advanced-editing-for-wordpress-20/
Прописываем в файле плагина advanced-wysiwyg.php название подпключаемого плагина /ну да, тот самый paste/, а также названия кнопок /кнопка Paste Plain Text назыается pastetext/
Вот например мой вариант настройки advanced-wysiwyg.php
<?php
/*
Plugin Name: Advanced WYSIWYG Editort
Plugin URI: http://www.labnotes.org/
Description: Adds more styling options to the WYSIWYG post editor.
Version: 0.2
Author: Assaf Arkin
Author URI: http://labnotes.org/
License: Creative Commons Attribution-ShareAlike
Tags: wordpress tinymce
*/
if (isset($wp_version)) {
add_filter("mce_plugins", "extended_editor_mce_plugins", 0);
add_filter("mce_buttons", "extended_editor_mce_buttons", 0);
add_filter("mce_buttons_2", "extended_editor_mce_buttons_2", 0);
add_filter("mce_buttons_3", "extended_editor_mce_buttons_3", 0);
}
function extended_editor_mce_plugins($plugins) {
array_push($plugins, "table", "fullscreen", "paste", "insertdatetime", "searchreplace", "print", "zoom", "advimage",
"flash", "spellerpages", "imagemanager", "save", "noneditable");
return $plugins;
}
function extended_editor_mce_buttons($buttons) {
return array(
"print", "separator", "spellerpages", "search", "replace", "separator", "cut", "copy", "paste", "pasteword",
"pastetext", "selectall", "separator","undo", "redo", "separator","link", "unlink", "anchor", "image", "flash",
"hr", "separator", "sub", "sup", "forecolor", "backcolor", "charmap", "separator", "code", "fullscreen", "wordpress",
"separator", "imagemanager", "wphelp");
}
function extended_editor_mce_buttons_2($buttons) {
// Add buttons on the second toolbar line
// return $buttons;
return array(
"formatselect", "fontselect", "fontsizeselect","separator", "bold", "italic", "underline", "strikethrough",
"separator","justifyleft", "justifycenter", "justifyright", "justifyfull", "separator", "bullist", "numlist",
"indent", "outdent", "separator", "table" , "separator", "insertdate");
}
function extended_editor_mce_buttons_3($buttons) {
// Add buttons on the third toolbar line
return $buttons;
//return array(
// "pasteword", "pastetext", "selectall");
}
?>