mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
make sure CKEDITOR is loaded, using egw.LAB.wait
This commit is contained in:
parent
6e28933f18
commit
07f21d1291
@ -557,6 +557,7 @@ class html
|
||||
'
|
||||
<script type="text/javascript">
|
||||
window.CKEDITOR_BASEPATH="'.$GLOBALS['egw_info']['server']['webserver_url'].'/phpgwapi/js/ckeditor/";
|
||||
egw.LAB.wait(function() {
|
||||
CKEDITOR.replace("'.$_name.'", '.egw_ckeditor_config::get_ckeditor_config($_mode,
|
||||
$pxheight, $expanded, $_start_path).');
|
||||
CKEDITOR.addCss("body { margin: 5px; }");
|
||||
@ -582,7 +583,8 @@ class html
|
||||
}
|
||||
);'.
|
||||
(trim($_content) == '' && $font_span ? 'CKEDITOR.instances["'.$_name.'"].setData("'.$font_span.'​</span>");' : '').
|
||||
'</script>
|
||||
'});
|
||||
</script>
|
||||
';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user