plugin improved

This commit is contained in:
khaydarov 2017-01-10 20:14:29 +03:00
parent fbbccaa350
commit dee4d856fa
4 changed files with 7 additions and 8 deletions

View file

@ -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

View file

@ -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 () {

View file

@ -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) {