This commit is contained in:
khaydarov 2017-01-11 21:29:04 +03:00 committed by Peter Savchenko
commit 7ef493825c
4 changed files with 15 additions and 4 deletions

View file

@ -1055,7 +1055,7 @@ var codex =
* Codex Editor Saver
*
* @author Codex Team
* @version 1.0
* @version 1.0.2
*/
var saver = function (saver) {
@ -1140,6 +1140,11 @@ var codex =
data: savedData
};
/**
* Do not allow empty initial plugins block
*/
if (savedData.text.trim() == '' && pluginName == codex.settings.initialBlockPlugin) return;
/** Marks Blocks that will be in main page */
output.cover = block.classList.contains(codex.ui.className.BLOCK_IN_FEED_MODE);

File diff suppressed because one or more lines are too long

View file

@ -2,7 +2,7 @@
* Codex Editor Saver
*
* @author Codex Team
* @version 1.0
* @version 1.0.2
*/
var saver = (function(saver) {
@ -102,6 +102,12 @@ var saver = (function(saver) {
data: savedData
};
/**
* Do not allow empty initial plugins block
*/
if (savedData.text.trim() == '' && pluginName == codex.settings.initialBlockPlugin)
return;
/** Marks Blocks that will be in main page */
output.cover = block.classList.contains(codex.ui.className.BLOCK_IN_FEED_MODE);

File diff suppressed because one or more lines are too long