mirror of
https://github.com/codex-team/editor.js
synced 2024-05-23 16:52:38 +02:00
plugin improved
This commit is contained in:
parent
fbbccaa350
commit
dee4d856fa
|
@ -1424,6 +1424,8 @@ var codex =
|
|||
codex.toolbar.showPlusButton();
|
||||
} else {
|
||||
|
||||
if (currentInputIndex === codex.state.inputs.length - 1) return;
|
||||
|
||||
/** Timeout for browsers execution */
|
||||
setTimeout(function () {
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -279,6 +279,9 @@ var content = (function(content) {
|
|||
|
||||
} else {
|
||||
|
||||
if (currentInputIndex === codex.state.inputs.length - 1)
|
||||
return;
|
||||
|
||||
/** Timeout for browsers execution */
|
||||
setTimeout(function () {
|
||||
|
||||
|
|
|
@ -76,13 +76,7 @@ youtubeTool.content = {
|
|||
setTimeout(function(){
|
||||
blockContent.classList.remove('youtube__loader');
|
||||
}, 500);
|
||||
|
||||
codex.content.insertBlock({
|
||||
type : 'paragraph',
|
||||
block : codex.tools['paragraph'].render({
|
||||
text : ''
|
||||
})
|
||||
}, true );
|
||||
|
||||
},
|
||||
|
||||
makeEmbedUrl: function (url) {
|
||||
|
|
Loading…
Reference in a new issue