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