<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
			<channel>
			<title>Плагин спойлера / Вопросы, проблемы и их решения / Alto CMS</title>
			<link>http://79.174.14.219/comments/892/</link>
			<description><![CDATA[Как добавить кнопку спойлера от одноимённого плагина в редактор? По ссылке устаревшая информация об установке.]]></description>
			<language>ru</language>
			<managingEditor>noreply@altocms.ru</managingEditor>
			<webMaster>noreply@altocms.ru</webMaster>
			<generator>Alto CMS v.1.5.0b1</generator>
							<item>
					<title>Плагин спойлера (comment #16844)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/892/#comment16844</guid>
					<link>http://79.174.14.219/892.html#comment16844</link>
					<author>deal@bmail.ru</author>
					<description><![CDATA[<a href="http://altocms.ru/profile/Klaus/" class="ls-user">Klaus</a> обещал сделать полноценный плагин спойлера, но после выхода обновления 1.0.8 появились дополнительные трудности.<br/>
<br/>
У меня на 1.0.7 кнопка добавлена с помощью плагина для tinymce, выглядит он так:<br/>
<pre class="prettyprint"><code>tinymce.PluginManager.add('spoiler', function(editor, url) {
    editor.addButton('spoiler', {
        text: 'S',
        icon: false,
        onclick: function() {
            editor.windowManager.open({
                title: 'Вставить спойлер',
                body: [
                    {type: 'textbox', name: 'title', label: 'Заголовок'},
					{type: 'textbox', name: 'insert', label: 'Содержимое', multiline: !0, minHeight: 300, minWidth: 500, style: &quot;direction: ltr; text-align: left&quot;}
                ],
                onsubmit: function(e) {
                    editor.insertContent('&lt;spoiler title=&quot;' + e.data.title + '&quot;:&gt;' + e.data.insert + '&lt;/spoiler&gt;');
                }
            });
        }
    });

});</code></pre><br/>
И в настройках редактора этот плагин добавлен в список используемых.]]></description>
					<pubDate>Thu, 11 Dec 2014 11:35:00 +0300</pubDate>
									</item>
							<item>
					<title>Плагин спойлера (comment #16875)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/892/#comment16875</guid>
					<link>http://79.174.14.219/892.html#comment16875</link>
					<author>andreyv@gladcode.ru</author>
					<description><![CDATA[Ниже просто добавьте строки<br/>
<pre class="prettyprint"><code>var p = ls.settings.presets.tinymce['default']();
    p.plugins = p.plugins + ' spoiler';
    p.toolbar = p.toolbar + ' | spoiler';
    ls.settings.presets.tinymce['default'] = function() { return p; };</code></pre><br/>
Таким образом каждый плагин будет расширять настройки редактора, а не затирать их.<br/>
<br/>
В плагине tinimce также можно использовать тектстовки Alto, например так:<br/>
<pre class="prettyprint"><code>tinymce.PluginManager.add('spoiler', function(editor, url) {
        editor.addButton('spoiler', {
            text: ls.lang.get('panel_b'),
            ...
        </code></pre><br/>
Сами текстовки, разумеется, должны быть предварительно подгружены]]></description>
					<pubDate>Sat, 13 Dec 2014 11:43:30 +0300</pubDate>
									</item>
							<item>
					<title>Плагин спойлера (comment #16876)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/892/#comment16876</guid>
					<link>http://79.174.14.219/892.html#comment16876</link>
					<author>deal@bmail.ru</author>
					<description><![CDATA[Вот спасибо!<br/>
А есть ли возможность из плагина таким же образом добавлять настройки в jevix?]]></description>
					<pubDate>Sat, 13 Dec 2014 11:46:30 +0300</pubDate>
									</item>
							<item>
					<title>Плагин спойлера (comment #16881)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/892/#comment16881</guid>
					<link>http://79.174.14.219/892.html#comment16881</link>
					<author>andreyv@gladcode.ru</author>
					<description><![CDATA[Да, такая возможность есть. Для этого в файле конфига плагина <em>common/plugins/[ИМЯПЛАГИНА]/config/config.php</em> нужно установить новые настройки jevixa. Например вот эти строки добавят в список разрешенных тегов тег <em>span</em><br/>
<pre class="prettyprint"><code>Config::Set('jevix.default.cfgAllowTags', array_merge(
    Config::Get('jevix.default.cfgAllowTags'),
    array(
        array('span'),
    )
));
</code></pre>]]></description>
					<pubDate>Sat, 13 Dec 2014 12:23:35 +0300</pubDate>
									</item>
							<item>
					<title>Плагин спойлера (comment #16846)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/892/#comment16846</guid>
					<link>http://79.174.14.219/892.html#comment16846</link>
					<author>reverty@gmail.com</author>
					<description><![CDATA[Подтверждаю, замучился с добавлением кнопки. И если в один плагин добавить кнопку уже понятно как, то сделать чтобы два плагина добавляли разные кнопки пока не получается.]]></description>
					<pubDate>Thu, 11 Dec 2014 11:52:19 +0300</pubDate>
									</item>
					</channel>
	</rss>
