не могу подключить FCKeditor

danneo

Честный
Регистрация
13 Ноя 2007
Сообщения
1.526
Реакции
121
Подключаю к CMS Danneo. Раньше там было через FCKeditor.php, а сейчас там через FCKeditor.js.
А какие настройки и как передать скрипту, не знаю.
Старое подключение.
PHP:
<?php
if(!defined("USEWYS")) exit();
global $WYSFORM,$WYSVALUE,$editor,$tm;


// WORK TO v.2.2
require_once("editor/fckeditor/fckeditor.js");
$oFCKeditor = new FCKeditor($WYSFORM);
$oFCKeditor->BasePath = 'editor/fckeditor/';
$oFCKeditor->Width = '100%';
$oFCKeditor->Height = '350';
$oFCKeditor->Value = $WYSVALUE;
$oFCKeditor->Create();


if($editor==''){
echo '<script language="javascript" type="text/javascript" src="editor/tinymce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
  theme : "advanced",
  mode : "textareas",
  plugins : "advimage,advlink,advhr,fullscreen,preview,media",
  theme_advanced_buttons1 : "fullscreen,preview,separator,bold,italic,underline,strikethrough,sub,sup,separator,forecolor,backcolor,separator,formatselect,fontselect,fontsizeselect",
  theme_advanced_buttons2 : "image,media,separator,link,unlink,removeformat,cleanup,advhr,charmap,separator,paste,cut,separator,outdent,indent,separator,bullist,numlist,separator,undo,redo,separator,code",
  theme_advanced_buttons3 : "",
  extended_valid_elements : "hr[class|width|size|noshade]",
  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "left",
  theme_advanced_resize_horizontal : false,
  theme_advanced_statusbar_location : "bottom",
  theme_advanced_resizing : true,
  editor_deselector : "ignorewysywig"
});
</script>';
$editor = 1;
}
$tm->textarea($WYSFORM,5,50,$WYSVALUE,0);
?>
 
FCKeditor зло, нас через него поломали...
<head>...<scriptsrc="/ckeditor/ckeditor.js"></script></head>
<textareaname="editor1">&lt;p&gt;Initial value.&lt;/p&gt;</textarea>
<script>
window.onload =function(){Для просмотра ссылки Войди или Зарегистрируйся('editor1');};</script>
подробно разжевано на : Для просмотра ссылки Войди или Зарегистрируйся
 
Назад
Сверху