2012-06-03 06:16:57 +03:00
|
|
|
{if $oConfig->GetValue('view.tinymce')}
|
|
|
|
{if !$sSettingsTinymce}
|
|
|
|
{assign var="sSettingsTinymce" value="ls.settings.getTinymce()"}
|
|
|
|
{/if}
|
|
|
|
|
2013-04-12 02:44:52 +03:00
|
|
|
<script src="{cfg name='path.static.framework'}/js/vendor/tinymce/tiny_mce.js"></script>
|
2012-06-03 06:16:57 +03:00
|
|
|
<script type="text/javascript">
|
|
|
|
jQuery(function($){
|
|
|
|
tinyMCE.init({$sSettingsTinymce});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{else}
|
2013-04-09 01:58:01 +03:00
|
|
|
{include file='modals/modal.load_img.tpl'}
|
2012-06-03 06:16:57 +03:00
|
|
|
|
2013-04-09 19:28:32 +03:00
|
|
|
{if !$sSettingsMarkitup}
|
2012-06-03 06:16:57 +03:00
|
|
|
{assign var="sSettingsMarkitup" value="ls.settings.getMarkitup()"}
|
|
|
|
{/if}
|
|
|
|
<script type="text/javascript">
|
|
|
|
jQuery(function($){
|
|
|
|
ls.lang.load({lang_load name="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"});
|
|
|
|
// Подключаем редактор
|
|
|
|
$('.markitup-editor').markItUp({$sSettingsMarkitup});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{/if}
|