<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Комментарии на: Доп. кнопки визуального редактирования</title>
	<link>http://lamerodrom.ru/wp-blog/osvoenie-bloga/visual-formatting-wordpress/</link>
	<description>ламерство и всякая всячина</description>
	<pubDate>Sun, 20 May 2012 12:16:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.1</generator>
		<item>
		<title>От: admin</title>
		<link>http://lamerodrom.ru/wp-blog/osvoenie-bloga/visual-formatting-wordpress/#comment-152</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 12 May 2007 12:50:58 +0000</pubDate>
		<guid>http://lamerodrom.ru/wp-blog/osvoenie-bloga/visual-formatting-wordpress/#comment-152</guid>
		<description>И последняя ссылка на те же две темы, коротко и ясно. Я уже запутался, у кого приоритет. :)
http://timrohrer.com/blog/?p=29

Утверждается, что проблема &lt;strong&gt;div&lt;/strong&gt;'ов решается лишь &lt;em&gt;частично&lt;/em&gt;, но не объясняется.</description>
		<content:encoded><![CDATA[<p>И последняя ссылка на те же две темы, коротко и ясно. Я уже запутался, у кого приоритет. <img src='http://lamerodrom.ru/wp-blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <a href="http://timrohrer.com/blog/?p=29" rel="nofollow">http://timrohrer.com/blog/?p=29</a></p>
<p>Утверждается, что проблема <strong>div</strong>&#8216;ов решается лишь <em>частично</em>, но не объясняется.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: admin</title>
		<link>http://lamerodrom.ru/wp-blog/osvoenie-bloga/visual-formatting-wordpress/#comment-151</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 12 May 2007 12:44:07 +0000</pubDate>
		<guid>http://lamerodrom.ru/wp-blog/osvoenie-bloga/visual-formatting-wordpress/#comment-151</guid>
		<description>И последний совет (но не последний по важности!) с http://wordpress.org/support/topic/76086?replies=3#post-509453

&lt;blockquote&gt;
TinyMCE as configured in WordPress 2.1 wipes away &lt;strong&gt;divs&lt;/strong&gt; and replaces them with p tags.
This can be fixed by doing the following:
1-Open your TinyMCE config file in an editor. The file is located at:
wp-includes/js/tinymce/plugins/tiny_mce_config.php
2-Replace Line 25 with the following but on a single line:
$valid_elements = '#p[*],-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]';
&lt;/blockquote&gt;

Т.е. TinyMCE настрое в ВордПресс 2.1 так, что он вычищает теги div и заменяет их на параграфы. Это не правильно. Лекарство - выше.</description>
		<content:encoded><![CDATA[<p>И последний совет (но не последний по важности!) с <a href="http://wordpress.org/support/topic/76086?replies=3#post-509453" rel="nofollow">http://wordpress.org/support/topic/76086?replies=3#post-509453</a></p>
<blockquote><p>
TinyMCE as configured in WordPress 2.1 wipes away <strong>divs</strong> and replaces them with p tags.<br />
This can be fixed by doing the following:<br />
1-Open your TinyMCE config file in an editor. The file is located at:<br />
wp-includes/js/tinymce/plugins/tiny_mce_config.php<br />
2-Replace Line 25 with the following but on a single line:<br />
$valid_elements = &#8216;#p[*],-div[*],-strong/-b[*],-em/-i[*],-font[*],-ul[*],-ol[*],-li[*],*[*]&#8217;;
</p></blockquote>
<p>Т.е. TinyMCE настрое в ВордПресс 2.1 так, что он вычищает теги div и заменяет их на параграфы. Это не правильно. Лекарство - выше.</p>
]]></content:encoded>
	</item>
	<item>
		<title>От: admin</title>
		<link>http://lamerodrom.ru/wp-blog/osvoenie-bloga/visual-formatting-wordpress/#comment-150</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 12 May 2007 12:22:01 +0000</pubDate>
		<guid>http://lamerodrom.ru/wp-blog/osvoenie-bloga/visual-formatting-wordpress/#comment-150</guid>
		<description>Первоисточник информации:
http://wordpress.org/support/topic/76086?replies=3#post-509453

Доп. ряд кнопок содержит действительно нужнейншие возможности.
Хотите, чтобы все кнопки были видны изначально? Вот вариант, на свой страх и риск:
wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js
return buttons+hiddenControls;
&lt;strong&gt;I don't advise&lt;/strong&gt; this and don't know what the side effects are, but it puts the button for switching the advance controls on and off on the end of the default buttons and so far I've had no ill effects.
Also you need to shift+control Refresh in Firefox to see the change.
---
ВОТ ВАРИАНТ ЛУЧШЕ!
I have a better solution, now I've had time to think about it. Do not do what is mentioned above, or undo if it has already been do.

In line 31 of
wp-includes/js/tinymce/plugins/tiny_mce_config.php
Move the 'wp_adv' to before the 'wp_adv_start'
Simple!
Again shift+control Refresh in Firefox to see the change.
---
ЕЩЕ ПРОЩЕ?!.
If you want all the buttons to show all the time &lt;strong&gt;just delete the 'wp_adv_start' and 'wp_adv_end' on line 31&lt;/strong&gt; of the same file.
But please &lt;strong&gt;remember &lt;/strong&gt;on your next upgrade it will return to normal unless you modify the file again after upgrading.
Тут есть тонкости: кнопка хелпа исчезнет (ну и ладно) и заместится на кнопку вкл./выкл 2й линейки кнопок. А при варианте "еще проще" все кнопки выстроятся в одну линию (что не совсем удобно).
&lt;em&gt;Добавлено: или все-таки в два ряда?.. Надо просто попробовать и посмотреть.&lt;/em&gt;
---
Копаем глубже.
http://sudarmuthu.com/blog/2007/02/11/wordpress-21-more-editing-options-in-wysiwyg-editor.html
Можно получить &lt;strong&gt;все &lt;/strong&gt;кнопки и возможности вот их сколько! :
&lt;img src="http://sudarmuthu.com/blog/wp-content/uploads/2007/02/wysiwyg-buttons.bmp" alt="" /&gt;

To enable these advanced buttons by default, you need to fiddle with some files in the wp-includes folder. The tiny_mce_config.php file in the wp-includes\js\tinymce directory to be exact. You need to open the file directly and remove the ‘wp_adv_start‘ and ‘wp_adv_end‘ present on line 31. (Do this only if you are brave at heart ;-) ).

Нехилый набор для он-лайн редактора! И андерлайн встал на место.</description>
		<content:encoded><![CDATA[<p>Первоисточник информации:<br />
<a href="http://wordpress.org/support/topic/76086?replies=3#post-509453" rel="nofollow">http://wordpress.org/support/topic/76086?replies=3#post-509453</a></p>
<p>Доп. ряд кнопок содержит действительно нужнейншие возможности.<br />
Хотите, чтобы все кнопки были видны изначально? Вот вариант, на свой страх и риск:<br />
wp-includes/js/tinymce/plugins/wordpress/editor_plugin.js<br />
return buttons+hiddenControls;<br />
<strong>I don&#8217;t advise</strong> this and don&#8217;t know what the side effects are, but it puts the button for switching the advance controls on and off on the end of the default buttons and so far I&#8217;ve had no ill effects.<br />
Also you need to shift+control Refresh in Firefox to see the change.<br />
&#8212;<br />
ВОТ ВАРИАНТ ЛУЧШЕ!<br />
I have a better solution, now I&#8217;ve had time to think about it. Do not do what is mentioned above, or undo if it has already been do.</p>
<p>In line 31 of<br />
wp-includes/js/tinymce/plugins/tiny_mce_config.php<br />
Move the &#8216;wp_adv&#8217; to before the &#8216;wp_adv_start&#8217;<br />
Simple!<br />
Again shift+control Refresh in Firefox to see the change.<br />
&#8212;<br />
ЕЩЕ ПРОЩЕ?!.<br />
If you want all the buttons to show all the time <strong>just delete the &#8216;wp_adv_start&#8217; and &#8216;wp_adv_end&#8217; on line 31</strong> of the same file.<br />
But please <strong>remember </strong>on your next upgrade it will return to normal unless you modify the file again after upgrading.<br />
Тут есть тонкости: кнопка хелпа исчезнет (ну и ладно) и заместится на кнопку вкл./выкл 2й линейки кнопок. А при варианте &#8220;еще проще&#8221; все кнопки выстроятся в одну линию (что не совсем удобно).<br />
<em>Добавлено: или все-таки в два ряда?.. Надо просто попробовать и посмотреть.</em><br />
&#8212;<br />
Копаем глубже.<br />
<a href="http://sudarmuthu.com/blog/2007/02/11/wordpress-21-more-editing-options-in-wysiwyg-editor.html" rel="nofollow">http://sudarmuthu.com/blog/2007/02/11/wordpress-21-more-editing-options-in-wysiwyg-editor.html</a><br />
Можно получить <strong>все </strong>кнопки и возможности вот их сколько! :<br />
<img src="http://sudarmuthu.com/blog/wp-content/uploads/2007/02/wysiwyg-buttons.bmp" alt="" /></p>
<p>To enable these advanced buttons by default, you need to fiddle with some files in the wp-includes folder. The tiny_mce_config.php file in the wp-includes\js\tinymce directory to be exact. You need to open the file directly and remove the ‘wp_adv_start‘ and ‘wp_adv_end‘ present on line 31. (Do this only if you are brave at heart <img src='http://lamerodrom.ru/wp-blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> ).</p>
<p>Нехилый набор для он-лайн редактора! И андерлайн встал на место.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

