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:
ckeditor
CHANGES.mdLICENSE.mdREADME.mdbuild-config.jsckeditor.jsconfig.jscontents.cssicons.pngstyles.js
lang
af.jsar.jsbg.jsbn.jsbs.jsca.jscs.jscy.jsda.jsde.jsel.jsen-au.jsen-ca.jsen-gb.jsen.jseo.jses.jset.jseu.jsfa.jsfi.jsfo.jsfr-ca.jsfr.jsgl.jsgu.jshe.jshi.jshr.jshu.jsis.jsit.jsja.jska.jskm.jsko.jsku.jslt.jslv.jsmk.jsmn.jsms.jsnb.jsnl.jsno.jspl.jspt-br.jspt.jsro.jsru.jssi.jssk.jssl.jssq.jssr-latn.jssr.jssv.jsth.jstr.jsug.jsuk.jsvi.jszh-cn.jszh.js
plugins
a11yhelp
dialogs
about
dialogs
clipboard
dialogs
dialog
fakeobjects
images
image
link
magicline
images
pastefromword
filter
scayt
specialchar
dialogs
table
dialogs
tabletools
dialogs
wsc
samples
ajax.htmlapi.htmlappendto.htmlreadonly.htmlreplacebyclass.htmlreplacebycode.htmlsample.csssample.jssample_posteddata.phptabindex.htmluicolor.htmluilanguages.htmlxhtmlstyle.html
assets
datafiltering.htmldivreplace.htmlindex.htmlinlineall.htmlinlinebycode.htmlplugins
dialog
enterkey
htmlwriter
magicline
toolbar
wysiwygarea
skins
moono
include
templates/2k11/admin
@ -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;
|
||||
|
Reference in New Issue
Block a user