File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ var cdxAttaches = function () {
217
217
218
218
upload . current = progress ;
219
219
220
- codex . editor . content . switchBlock ( codex . editor . content . currentNode , progress ) ;
220
+ codex . editor . content . switchBlock ( codex . editor . content . currentNode , progress , 'attaches' ) ;
221
221
222
222
} ,
223
223
@@ -261,7 +261,7 @@ var cdxAttaches = function () {
261
261
data . size = Math . ceil ( data . size / KBYTE ) || 1 ;
262
262
263
263
uploadedFile = ui . uploadedFile ( data ) ;
264
- codex . editor . content . switchBlock ( upload . current , uploadedFile ) ;
264
+ codex . editor . content . switchBlock ( upload . current , uploadedFile , 'attaches' ) ;
265
265
266
266
uploadedFile . querySelector ( 'input' ) . focus ( ) ;
267
267
@@ -290,7 +290,7 @@ var cdxAttaches = function () {
290
290
291
291
var defaultFrom = ui . defaultForm ( ) ;
292
292
293
- codex . editor . content . switchBlock ( upload . current , defaultFrom ) ;
293
+ codex . editor . content . switchBlock ( upload . current , defaultFrom , 'attaches' ) ;
294
294
295
295
if ( ! upload . aborted ) {
296
296
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ var header = (function(header_plugin) {
39
39
new_header . setAttribute ( 'data-placeholder' , 'Заголовок' ) ;
40
40
new_header . dataset . headerData = type ;
41
41
42
- codex . editor . content . switchBlock ( old_header , new_header ) ;
42
+ codex . editor . content . switchBlock ( old_header , new_header , 'header' ) ;
43
43
44
44
/** Close settings after replacing */
45
45
codex . editor . toolbar . settings . close ( ) ;
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ var image = (function(image_plugin) {
359
359
360
360
var newImage = make_ ( data ) ;
361
361
362
- codex . editor . content . switchBlock ( image . holder , newImage ) ;
362
+ codex . editor . content . switchBlock ( image . holder , newImage , 'image' ) ;
363
363
newImage . classList . add ( elementClasses_ . imagePreview ) ;
364
364
365
365
/**
@@ -404,7 +404,7 @@ var image = (function(image_plugin) {
404
404
var oldHolder = image . holder ;
405
405
var form = ui_ . makeForm ( ) ;
406
406
407
- codex . editor . content . switchBlock ( oldHolder , form ) ;
407
+ codex . editor . content . switchBlock ( oldHolder , form , 'image' ) ;
408
408
409
409
}
410
410
} ,
@@ -467,7 +467,7 @@ var image = (function(image_plugin) {
467
467
468
468
var img = image . querySelector ( 'img' ) ;
469
469
470
- codex . editor . content . switchBlock ( codex . editor . content . currentNode , image ) ;
470
+ codex . editor . content . switchBlock ( codex . editor . content . currentNode , image , 'image' ) ;
471
471
472
472
} ;
473
473
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ var list = (function(list_plugin) {
74
74
newEditable . innerHTML = oldEditable . innerHTML ;
75
75
newEditable . classList . add ( elementClasses_ . pluginWrapper ) ;
76
76
77
- codex . editor . content . switchBlock ( currentBlock , newEditable ) ;
77
+ codex . editor . content . switchBlock ( currentBlock , newEditable , 'list' ) ;
78
78
} ,
79
79
keyDown : function ( e ) {
80
80
You can’t perform that action at this time.
0 commit comments