<?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/1045/</link>
			<description><![CDATA[В админке есть контент-страницы, вот как мне туда подключить визуальный редактор? Обращаю внимание alto v1.0.x от сегодня с гитхаба, незнаю]]></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 #19244)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1045/#comment19244</guid>
					<link>http://79.174.14.219/1045.html#comment19244</link>
					<author>reverty@gmail.com</author>
					<description><![CDATA[Отписал на github о недоделке]]></description>
					<pubDate>Wed, 18 Mar 2015 17:38:01 +0300</pubDate>
									</item>
							<item>
					<title>Как подключить визуальный редактор для страниц? (comment #19249)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1045/#comment19249</guid>
					<link>http://79.174.14.219/1045.html#comment19249</link>
					<author>alexiy2004@mail.ru</author>
					<description><![CDATA[Спасибо, отлично, но мне решение нужно сегодня, а не через пару недель.<br/>
покопался, нашел в файле \common\templates\skin\admin-default\tpls\inc.editor.tpl<br/>
пропущен кусок кода, если смотреть по аналогии с фронтом:<br/>
<pre class="prettyprint"><code>else {
    jQuery(function(){
        tinymce.init({$sSettingsTinymce});
    });
}</code></pre><br/>
Если его добавить, валятся куча ошибок в консоль <br/>
tinymce.min.js:4 GET <a href="http://some.dev/admin/content-pages/edit/1/plugins/advlist/pluginundefined.js" rel="nofollow" >some.dev/admin/content-pages/edit/1//plugins/advlist/pluginundefined.js</a> <br/>
tinymce.min.js:4 Failed to load: <a href="http://some.dev/admin/content-pages/edit/1/plugins/advlist/pluginundefined.js" rel="nofollow" >some.dev/admin/content-pages/edit/1//plugins/advlist/pluginundefined.js</a><br/>
<br/>
никак не пойму о чем это он]]></description>
					<pubDate>Wed, 18 Mar 2015 17:57:43 +0300</pubDate>
									</item>
							<item>
					<title>Как подключить визуальный редактор для страниц? (comment #19250)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1045/#comment19250</guid>
					<link>http://79.174.14.219/1045.html#comment19250</link>
					<author>reverty@gmail.com</author>
					<description><![CDATA[Там все просто, в common\templates\skin\admin-default\settings\config\config.php<br/>
<br/>
нужно вместо <pre class="prettyprint"><code>'___path.frontend.dir___/libs/vendor/tinymce_4/tinymce.min.js' =&gt; array('name' =&gt; 'tinymce', 'asset' =&gt; 'mini'),</code></pre> вставить <pre class="prettyprint"><code>/* tinyMCE */
    '___path.frontend.dir___/libs/vendor/tinymce_4/tinymce.min.js'       =&gt; array(
        'dir_from' =&gt; '___path.frontend.dir___/libs/vendor/tinymce_4/',
        'name'     =&gt; 'tinymce_4',
        'compress' =&gt; false,
        'merge'    =&gt; false
    ),
    '___path.frontend.dir___/libs/vendor/tinymce_4/plugins/*'       =&gt; array(
        'dir_from'  =&gt; '___path.frontend.dir___/libs/vendor/tinymce_4/',
        'prepare'   =&gt; true,
        'compress'  =&gt; false,
        'merge'     =&gt; false
    ),
    '___path.frontend.dir___/libs/vendor/tinymce_4/langs/*'       =&gt; array(
        'dir_from' =&gt; '___path.frontend.dir___/libs/vendor/tinymce_4/',
        'prepare'  =&gt; true,
        'compress' =&gt; false,
        'merge'    =&gt; false
    ),
    '___path.frontend.dir___/libs/vendor/tinymce_4/skins/*'       =&gt; array(
        'dir_from' =&gt; '___path.frontend.dir___/libs/vendor/tinymce_4/',
        'prepare'  =&gt; true,
        'compress' =&gt; false,
        'merge'    =&gt; false
    ),
    '___path.frontend.dir___/libs/vendor/tinymce_4/themes/*'       =&gt; array(
        'dir_from' =&gt; '___path.frontend.dir___/libs/vendor/tinymce_4/',
        'prepare'  =&gt; true,
        'compress' =&gt; false,
        'merge'    =&gt; false
    ),</code></pre>]]></description>
					<pubDate>Wed, 18 Mar 2015 18:12:25 +0300</pubDate>
									</item>
							<item>
					<title>Как подключить визуальный редактор для страниц? (comment #19251)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1045/#comment19251</guid>
					<link>http://79.174.14.219/1045.html#comment19251</link>
					<author>reverty@gmail.com</author>
					<description><![CDATA[А еще нужно добавить class в common\templates\skin\admin-default\tpls\actions\admin\action.admin.content\pages_add.tpl там где класс js-editor-markitup добавить еще и js-editor-wysiwyg]]></description>
					<pubDate>Wed, 18 Mar 2015 18:17:12 +0300</pubDate>
									</item>
							<item>
					<title>Как подключить визуальный редактор для страниц? (comment #19252)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1045/#comment19252</guid>
					<link>http://79.174.14.219/1045.html#comment19252</link>
					<author>alexiy2004@mail.ru</author>
					<description><![CDATA[Огромное спасибо! <br/>
Редактор появился, но в нем не работает кнопка вставки изображения.<br/>
И когда нажимаешь формат — появляется дропдаун с тремя пустыми строками.]]></description>
					<pubDate>Wed, 18 Mar 2015 18:31:53 +0300</pubDate>
									</item>
							<item>
					<title>Как подключить визуальный редактор для страниц? (comment #19256)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1045/#comment19256</guid>
					<link>http://79.174.14.219/1045.html#comment19256</link>
					<author>andreyv@gladcode.ru</author>
					<description><![CDATA[Ещё нужно подгрузить текстовки как <a href="https://github.com/altocms/altocms/blob/master/common/templates/skin/start-kit/tpls/editors/editor.tinymce.tpl#L5-L7" rel="nofollow" >здесь</a>]]></description>
					<pubDate>Wed, 18 Mar 2015 19:51:16 +0300</pubDate>
									</item>
							<item>
					<title>Как подключить визуальный редактор для страниц? (comment #19269)</title>
					<guid isPermaLink="true">http://79.174.14.219/t/1045/#comment19269</guid>
					<link>http://79.174.14.219/1045.html#comment19269</link>
					<author>alexiy2004@mail.ru</author>
					<description><![CDATA[Большое спасибо за ответ и наводку, но к сожалению это не дало никаких результатов.<br/>
Но выпадающий список формат исправила вот эта строка:<br/>
ls.lang.load({lang_load name=«panel_title_h4,panel_title_h5,panel_title_h6»});<br/>
<br/>
Вставить\изменить изображение по прежнему не работает.<br/>
<br/>
Вынес код отвечающий за отображение модального окна из раздела с markitup за все ифы, вот что получилось в файле \common\templates\skin\admin-default\tpls\inc.editor.tpl:<br/>
<br/>
<pre class="prettyprint"><code>
{if !$sImgToLoad}
    {assign var=&quot;sImgToLoad&quot; value=&quot;topic_text&quot;}
{/if}
{include_once file=&quot;modals/modal.upload_img.tpl&quot; sToLoad=$sImgToLoad}

{if Config::Get('view.wysiwyg')}
    {if !$sSettingsTinymce}
        {assign var=&quot;sSettingsTinymce&quot; value=&quot;ls.settings.getTinymce()&quot;}
    {/if}

    &lt;script type=&quot;text/javascript&quot;&gt;
        $(function(){
            ls.lang.load({lang_load name=&quot;panel_spoiler_title,panel_spoiler_text,panel_user,panel_user_promt,panel_photoset,panel_spoiler,panel_photoset_from,panel_photoset_to,panel_photoset_align,panel_photoset_align_left,panel_photoset_align_right,panel_photoset_align_both,panel_photoset_topic&quot;});
        });
        ls.lang.load({lang_load name=&quot;panel_title_h4,panel_title_h5,panel_title_h6&quot;});
        if (!tinymce) {
            jQuery.getScript(ls.cfg.assets['tinymce_4'], function() {
                jQuery(function ($) {
                    tinymce.init({$sSettingsTinymce});
                });
            });
        } else {
            jQuery(function(){
                tinymce.init(ls.settings.getTinymce());
            });
        }
    &lt;/script&gt;
{else}

    {if !$sSettingsTinymce}
        {$sSettingsMarkitup=&quot;ls.settings.getMarkitup()&quot;}
    {/if}
    &lt;script type=&quot;text/javascript&quot;&gt;
        jQuery(function ($) {
            ls.lang.load({lang_load name=&quot;panel_b,panel_i,panel_u,panel_s,panel_url,panel_url_promt,panel_code,panel_video,panel_image,panel_cut,panel_quote,panel_list,panel_list_ul,panel_list_ol,panel_title,panel_clear_tags,panel_video_promt,panel_list_li,panel_image_promt,panel_user,panel_user_promt&quot;});
            $('.js-editor-markitup').markItUp({$sSettingsMarkitup});
        });
    &lt;/script&gt;
{/if}</code></pre><br/>
<br/>
Модальное окно появилось, но оно выглядит не так как на фронте, а хотелось бы одного стиля в обоих редакторах, т.к. остальные окна работают и выглядят одинакого, плюс в этом окне некоторые элементы съехавшие, нет возможности задать максимальный размер и кнопка отмена не работает опять )<br/>
<br/>
Скрин того что получилось:<br/>
<img src="http://c2n.me/3etkcDw.png" /><br/>
<br/>
Скрин того как нужно (с фронта):<br/>
<img src="http://c2n.me/3etktdf.png" />]]></description>
					<pubDate>Thu, 19 Mar 2015 10:34:43 +0300</pubDate>
									</item>
					</channel>
	</rss>
