1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-26 03:30:48 +03:00

фикс предпросмотра

This commit is contained in:
Mzhelskiy Maxim 2008-12-09 05:28:08 +00:00
parent 0bb2d5150e
commit 420e638167
2 changed files with 5 additions and 3 deletions

View file

@ -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>

View file

@ -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 } );