Skip to content

Commit fd065a0

Browse files
committed
Merge branch 'fix' into release.1.6
2 parents b009799 + 78db856 commit fd065a0

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

plugins/attaches/attaches.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ var cdxAttaches = function () {
217217

218218
upload.current = progress;
219219

220-
codex.editor.content.switchBlock(codex.editor.content.currentNode, progress);
220+
codex.editor.content.switchBlock(codex.editor.content.currentNode, progress, 'attaches');
221221

222222
},
223223

@@ -261,7 +261,7 @@ var cdxAttaches = function () {
261261
data.size = Math.ceil(data.size / KBYTE) || 1;
262262

263263
uploadedFile = ui.uploadedFile(data);
264-
codex.editor.content.switchBlock(upload.current, uploadedFile);
264+
codex.editor.content.switchBlock(upload.current, uploadedFile, 'attaches');
265265

266266
uploadedFile.querySelector('input').focus();
267267

@@ -290,7 +290,7 @@ var cdxAttaches = function () {
290290

291291
var defaultFrom = ui.defaultForm();
292292

293-
codex.editor.content.switchBlock(upload.current, defaultFrom);
293+
codex.editor.content.switchBlock(upload.current, defaultFrom, 'attaches');
294294

295295
if (!upload.aborted) {
296296

plugins/header/header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ var header = (function(header_plugin) {
3939
new_header.setAttribute('data-placeholder', 'Заголовок');
4040
new_header.dataset.headerData = type;
4141

42-
codex.editor.content.switchBlock(old_header, new_header);
42+
codex.editor.content.switchBlock(old_header, new_header, 'header');
4343

4444
/** Close settings after replacing */
4545
codex.editor.toolbar.settings.close();

plugins/image/image.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ var image = (function(image_plugin) {
359359

360360
var newImage = make_(data);
361361

362-
codex.editor.content.switchBlock(image.holder, newImage);
362+
codex.editor.content.switchBlock(image.holder, newImage, 'image');
363363
newImage.classList.add(elementClasses_.imagePreview);
364364

365365
/**
@@ -404,7 +404,7 @@ var image = (function(image_plugin) {
404404
var oldHolder = image.holder;
405405
var form = ui_.makeForm();
406406

407-
codex.editor.content.switchBlock(oldHolder, form);
407+
codex.editor.content.switchBlock(oldHolder, form, 'image');
408408

409409
}
410410
},
@@ -467,7 +467,7 @@ var image = (function(image_plugin) {
467467

468468
var img = image.querySelector('img');
469469

470-
codex.editor.content.switchBlock(codex.editor.content.currentNode, image);
470+
codex.editor.content.switchBlock(codex.editor.content.currentNode, image, 'image');
471471

472472
};
473473

plugins/list/list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ var list = (function(list_plugin) {
7474
newEditable.innerHTML = oldEditable.innerHTML;
7575
newEditable.classList.add(elementClasses_.pluginWrapper);
7676

77-
codex.editor.content.switchBlock(currentBlock, newEditable);
77+
codex.editor.content.switchBlock(currentBlock, newEditable, 'list');
7878
},
7979
keyDown: function (e) {
8080

0 commit comments

Comments
 (0)