File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,7 @@ CKEDITOR.replaceClass = 'ckeditor';
302
302
303
303
// Get the HTML for the predefined spaces.
304
304
var topHtml = editor . fire ( 'uiSpace' , { space : 'top' , html : '' } ) . html ;
305
- var bottomHtml = editor . fireOnce ( 'uiSpace' , { space : 'bottom' , html : '' } ) . html ;
305
+ var bottomHtml = editor . fire ( 'uiSpace' , { space : 'bottom' , html : '' } ) . html ;
306
306
307
307
if ( ! themedTpl ) {
308
308
themedTpl = CKEDITOR . addTemplate ( 'maincontainer' , '<{outerEl}' +
Original file line number Diff line number Diff line change 20
20
21
21
CKEDITOR . plugins . add ( 'floatingspace' , {
22
22
init : function ( editor ) {
23
- editor . on ( 'contentDom' , function ( ) {
23
+ // Add listener with lower priority than that in themedui creator.
24
+ // Thereby floatingspace will be created only if themedui wasn't used.
25
+ editor . on ( 'loaded' , function ( ) {
24
26
attach ( editor ) ;
25
- } ) ;
27
+ } , null , null , 20 ) ;
26
28
}
27
29
} ) ;
28
30
Original file line number Diff line number Diff line change 149
149
150
150
editor . on ( 'uiSpace' , function ( event ) {
151
151
if ( event . data . space == editor . config . toolbarLocation ) {
152
+ // Create toolbar only once.
153
+ event . removeListener ( ) ;
154
+
152
155
editor . toolbox = new toolbox ( ) ;
153
156
154
157
var labelId = CKEDITOR . tools . getNextId ( ) ;
You can’t perform that action at this time.
0 commit comments