mirror of
https://github.com/codex-team/editor.js
synced 2026-03-16 15:45:47 +01:00
up
This commit is contained in:
parent
3ebf4992de
commit
b61fac8386
3 changed files with 3 additions and 3 deletions
|
|
@ -1604,7 +1604,7 @@ var BlockManager = function (_Module) {
|
|||
* @todo make object in accordance with Tool
|
||||
*/
|
||||
var data = {
|
||||
text: wrapper.innerHTML
|
||||
text: wrapper.textContent.trim() === '' ? '' : wrapper.innerHTML
|
||||
};
|
||||
|
||||
if (this.currentBlock.isEmpty) {
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
|
|
@ -256,7 +256,7 @@ export default class BlockManager extends Module {
|
|||
* @todo make object in accordance with Tool
|
||||
*/
|
||||
let data = {
|
||||
text: wrapper.innerHTML,
|
||||
text: wrapper.textContent.trim() === '' ? '' : wrapper.innerHTML,
|
||||
};
|
||||
|
||||
if (this.currentBlock.isEmpty) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue