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