1
0

Replace xinha with ckeditor

Removes also a lot of the code needed by the wysiwyg-plugins, but the whole spawn()-logic has to get checked anyway
This commit is contained in:
onli
2013-06-25 01:05:19 +02:00
parent ce9ac484d9
commit 4c95630c4c
242 changed files with 9071 additions and 186 deletions

View File

@ -170,36 +170,6 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
return;
}
if (file_exists($serendipity['serendipityPath'] . 'htmlarea/XinhaCore.js')) {
$xinha = true;
} else {
$xinha = false;
}
$xinha_custom = serendipity_getTemplateFile('my_custom.js', 'serendipityHTTPPath');
if (empty($xinha_custom)) {
$xinha_custom = 'htmlarea/my_custom.js';
}
$csscode = str_replace(
array(
"\n",
"'",
"\r",
"{LANG_DIRECTION}"
),
array(
'\n',
"\'",
"",
(defined('LANG_DIRECTION') ? LANG_DIRECTION : 'ltr')
),
file_get_contents(serendipity_getTemplateFile('style_fallback.css', 'serendipityPath')) .
file_get_contents(serendipity_getTemplateFile('htmlarea.css', 'serendipityPath'))
);
if (is_array($eventData['buttons'])) {
foreach($eventData['buttons'] as $button) {
// Sort buttons into toolbar lists for later additions
@ -219,10 +189,7 @@ function serendipity_emit_htmlarea_code($item, $jsname, $spawnMulti = false) {
}
$data = array();
$data['xinha'] = $xinha;
$data['xinha_custom'] = $xinha_custom;
$data['init'] = $init;
$data['csscode'] = $csscode;
$data['spawnMulti'] = $spawnMulti;
$data['jsname'] = $jsname;
$data['eventData'] = $eventData;