mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-07-01 05:55:02 +03:00
фикс предпросмотра
This commit is contained in:
parent
0bb2d5150e
commit
420e638167
|
@ -40,6 +40,7 @@ var msgNoticeBox=new Roar({
|
||||||
<script>
|
<script>
|
||||||
var DIR_WEB_ROOT='{$DIR_WEB_ROOT}';
|
var DIR_WEB_ROOT='{$DIR_WEB_ROOT}';
|
||||||
var DIR_STATIC_SKIN='{$DIR_STATIC_SKIN}';
|
var DIR_STATIC_SKIN='{$DIR_STATIC_SKIN}';
|
||||||
|
var BLOG_USE_TINYMCE='{$BLOG_USE_TINYMCE}';
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -325,12 +325,13 @@ function ajaxTextPreview(textId,save) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var text;
|
var text;
|
||||||
if (tinyMCE && (ed=tinyMCE.get(textId))) {
|
|
||||||
|
if (BLOG_USE_TINYMCE && (ed=tinyMCE.get(textId))) {
|
||||||
text = ed.getContent();
|
text = ed.getContent();
|
||||||
} else {
|
} else {
|
||||||
text = $(textId).value;
|
text = $(textId).value;
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
showWindowStatus('Обработка предпросмотра...');
|
showWindowStatus('Обработка предпросмотра...');
|
||||||
req.open(null, DIR_WEB_ROOT+'/include/ajax/textPreview.php', true);
|
req.open(null, DIR_WEB_ROOT+'/include/ajax/textPreview.php', true);
|
||||||
req.send( { text: text, save: save } );
|
req.send( { text: text, save: save } );
|
||||||
|
|
Loading…
Reference in a new issue