mirror of
https://github.com/codex-team/editor.js
synced 2026-03-18 00:19:53 +01:00
feature (#108)
This commit is contained in:
parent
83dbad9299
commit
7ef493825c
4 changed files with 15 additions and 4 deletions
|
|
@ -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
|
|
@ -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
Loading…
Add table
Add a link
Reference in a new issue