diff --git a/README.md b/README.md
index cb4cba35e..ce5e787eb 100644
--- a/README.md
+++ b/README.md
@@ -116,7 +116,7 @@ For styling the content in frontend (where it will be read only without editing
- **uploadFile**: (function ($placeholder, file, that)) function uploading an image to a server
- **deleteFile**: (function (file, that)) function deleting an image from a server
- **embeds**:
- - **urlPlaceholder**: (string) placeholder displayed when entering URL to embed. Default: *type or paste url here*
+ - **urlPlaceholder**: (string) placeholder displayed when entering URL to embed. Default: *Paste or type a link*
- **oembedProxy**: (string) URL to oEmbed proxy endpoint, such as Iframely, Embedly or your own. You are welcome to use "http://medium.iframe.ly/api/oembed?iframe=1" for your dev and testing needs, courtesy of [Iframely](https://iframely.com). Default: none, which will make the plugin use pre-defined set of embed rules without making server calls.
- **tables**:
- **defaultRows**: (integer) default number of rows. Default: *2*
diff --git a/dist/css/medium-editor-insert-plugin.css b/dist/css/medium-editor-insert-plugin.css
index b1716ebe7..5e3e32f14 100644
--- a/dist/css/medium-editor-insert-plugin.css
+++ b/dist/css/medium-editor-insert-plugin.css
@@ -194,9 +194,7 @@
background-color: #fff; }
.mediumInsert .mediumInsert-embedsWire {
position: absolute;
- bottom: 24px;
left: 50%;
- width: 500px;
text-align: center; }
.mediumInsert .mediumInsert-embedsBox {
position: relative;
diff --git a/dist/css/medium-editor-insert-plugin.min.css b/dist/css/medium-editor-insert-plugin.min.css
index 648b1ec95..a9066a6e5 100644
--- a/dist/css/medium-editor-insert-plugin.min.css
+++ b/dist/css/medium-editor-insert-plugin.min.css
@@ -7,4 +7,4 @@
* Released under the MIT license
*/
-.mediumInsert{margin:-1em 0}.mediumInsert figure{margin:0;display:inline-block}.mediumInsert img{max-width:100%}.mediumInsert .mediumInsert-embeds{text-align:center;padding:15px}.mediumInsert .mediumInsert-embeds iframe,.mediumInsert .mediumInsert-embeds div{margin:0 auto!important}.mediumInsert .mediumInsert-images{margin-right:10px;width:20%}.mediumInsert .mediumInsert-images img{margin-top:1em;margin-bottom:10px;vertical-align:top}.mediumInsert .mediumInsert-images:first-child{margin-right:0;width:auto}.mediumInsert .mediumInsert-images:first-child:after{content:"\a";white-space:pre}.mediumInsert .mediumInsert-maps{padding:10px;background:#ccc}.mediumInsert table.mediumInsert-table{border-top:2px solid #333;border-left:2px solid #333;width:90%;margin:30px auto}.mediumInsert table.mediumInsert-table td{border-right:2px solid #333;border-bottom:2px solid #333;padding:12px}.mediumInsert.small{float:left;margin-right:30px}.medium-editor-insert-plugin .clearfix:before,.medium-editor-insert-plugin:before,.medium-editor-insert-plugin .clearfix:after,.medium-editor-insert-plugin:after{content:" ";display:table}.medium-editor-insert-plugin .clearfix:after,.medium-editor-insert-plugin:after{clear:both}.medium-editor-insert-plugin img{max-width:100%}.medium-editor-insert-plugin q,.medium-editor-insert-plugin blockquote{display:block;margin-top:1em;margin-bottom:1em;border-left:5px solid #efefef;padding-left:20px;margin-left:-25px}.medium-editor-insert-plugin [draggable]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.medium-editor-insert-plugin[contenteditable],.medium-editor-insert-plugin [contenteditable]{outline:0 solid transparent}.medium-editor-insert-plugin[contenteditable]:focus,.medium-editor-insert-plugin [contenteditable]:focus{outline:0 solid transparent}.medium-editor-insert-plugin *{-moz-box-sizing:content-box;box-sizing:content-box}.medium-editor-insert-plugin p{margin:1em 0}.medium-editor-insert-plugin progress{display:block;margin:1em auto}.medium-editor-insert-plugin .hide{display:none!important}.medium-editor-insert-plugin.hover .mediumInsert-placeholder{min-height:14px;border:1px dashed #ddd;margin-top:-1px;margin-bottom:-1px}.medium-editor-insert-plugin.medium-editor-placeholder{padding-bottom:0!important;min-height:58px}.medium-editor-insert-plugin.medium-editor-placeholder:after{content:attr(data-placeholder)!important;top:1em}.mediumInsert{position:relative;margin-left:-40px!important;min-height:18px}.mediumInsert.small{width:calc(33.33% + 40px)}.mediumInsert .mediumInsert-buttonsShow{opacity:0;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transition:all .08s cubic-bezier(.2,.3,.25,.9);transition:all .08s cubic-bezier(.2,.3,.25,.9);display:block;width:18px;height:18px;margin-top:-5px;border-radius:10px;border:2px solid;font-size:18px;line-height:18px;text-align:center;text-decoration:none!important}.mediumInsert .mediumInsert-buttonsShow:after{left:auto;right:100%;top:50%;margin-top:-4px}.mediumInsert .mediumInsert-buttons{position:absolute;width:40px;bottom:0;left:0;color:#ddd;font-size:.9em}.mediumInsert .mediumInsert-buttons a{text-decoration:underline;cursor:pointer}.mediumInsert .mediumInsert-buttons a.active{font-weight:700}.mediumInsert ul.mediumInsert-buttonsOptions{margin:0;padding:0;list-style:none;display:none;position:absolute;z-index:2;left:40px;top:-10px;border-radius:5px}.mediumInsert ul.mediumInsert-buttonsOptions button{min-height:auto;height:auto;padding:5px;border-left:none;float:none}.mediumInsert ul.mediumInsert-buttonsOptions button .fa{font-size:20px}.mediumInsert .mediumInsert-placeholder{position:relative;margin-left:40px;text-align:center}.mediumInsert .mediumInsert-images a{position:absolute;top:1em;width:30px;height:30px;background-color:#3b3b3b;background-repeat:no-repeat;background-position:center center;cursor:pointer}.mediumInsert .mediumInsert-imageRemove{right:0;background-image:url(../images/remove.png)}.mediumInsert .mediumInsert-imageResizeSmaller,.mediumInsert .mediumInsert-imageResizeBigger{right:31px;background-image:url(../images/resize-smaller.png)}.mediumInsert .mediumInsert-imageResizeBigger{background-image:url(../images/resize-bigger.png)}.mediumInsert .mediumInsert-error{background-color:#f2dede;border:1px solid #ebccd1;color:#a94442;padding:15px}.mediumInsert .mediumInsert-embedsPlaceholder{position:relative;padding:24px;height:160px;text-align:center;background-color:#fff}.mediumInsert .mediumInsert-embedsWire{position:absolute;bottom:24px;left:50%;width:500px;text-align:center}.mediumInsert .mediumInsert-embedsBox{position:relative;left:-250px}.mediumInsert .mediumInsert-embedsBox input[type="text"]{margin:0 auto;padding:10px;width:330px;border:solid 3px #ccc;font-size:1em;font-family:Arial,sans-serif;color:#aaa}.mediumInsert .mediumInsert-embedsBox input[type="text"]:focus{border:solid 1px #EEA34A}.mediumInsert .mediumInsert-embedsBox input::-webkit-input-placeholder{color:#aaa}.mediumInsert .mediumInsert-embedsBox button{border:solid 1px #2fbbfc;padding:11px 30px;font-family:Arial,sans-serif;font-size:1.2em;color:#fff;cursor:pointer;background-color:#2fbbfc}.mediumInsert .mediumInsert-embedsImage{font-size:100px;color:#999}.mediumInsert.hover .mediumInsert-placeholder{background:#f0f0f0}.mediumInsert:hover .mediumInsert-buttonsShow{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox{background-color:#fff;border:2px solid #333;display:inline-block;z-index:50;position:relative}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox label,.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox button{color:#333;text-transform:capitalize}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox button.mediumInsert-tableReadyButton{background-color:#fff;border:1px solid #333}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox input.mediumInsert-tableCols,.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox input.mediumInsert-tableRows{width:50px;display:block;height:initial;background-color:inherit;border:1px solid #333;color:#333;margin:0 auto;text-align:center}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox table{margin:10px}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox table td{text-align:center}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox table.mediumInsert-demoTable{border-top:2px solid #333;border-left:2px solid #333;height:100px;width:100px}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox table.mediumInsert-demoTable td{border-bottom:2px solid #333;border-right:2px solid #333}
\ No newline at end of file
+.mediumInsert{margin:-1em 0}.mediumInsert figure{margin:0;display:inline-block}.mediumInsert img{max-width:100%}.mediumInsert .mediumInsert-embeds{text-align:center;padding:15px}.mediumInsert .mediumInsert-embeds iframe,.mediumInsert .mediumInsert-embeds div{margin:0 auto!important}.mediumInsert .mediumInsert-images{margin-right:10px;width:20%}.mediumInsert .mediumInsert-images img{margin-top:1em;margin-bottom:10px;vertical-align:top}.mediumInsert .mediumInsert-images:first-child{margin-right:0;width:auto}.mediumInsert .mediumInsert-images:first-child:after{content:"\a";white-space:pre}.mediumInsert .mediumInsert-maps{padding:10px;background:#ccc}.mediumInsert table.mediumInsert-table{border-top:2px solid #333;border-left:2px solid #333;width:90%;margin:30px auto}.mediumInsert table.mediumInsert-table td{border-right:2px solid #333;border-bottom:2px solid #333;padding:12px}.mediumInsert.small{float:left;margin-right:30px}.medium-editor-insert-plugin .clearfix:before,.medium-editor-insert-plugin:before,.medium-editor-insert-plugin .clearfix:after,.medium-editor-insert-plugin:after{content:" ";display:table}.medium-editor-insert-plugin .clearfix:after,.medium-editor-insert-plugin:after{clear:both}.medium-editor-insert-plugin img{max-width:100%}.medium-editor-insert-plugin q,.medium-editor-insert-plugin blockquote{display:block;margin-top:1em;margin-bottom:1em;border-left:5px solid #efefef;padding-left:20px;margin-left:-25px}.medium-editor-insert-plugin [draggable]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.medium-editor-insert-plugin[contenteditable],.medium-editor-insert-plugin [contenteditable]{outline:0 solid transparent}.medium-editor-insert-plugin[contenteditable]:focus,.medium-editor-insert-plugin [contenteditable]:focus{outline:0 solid transparent}.medium-editor-insert-plugin *{-moz-box-sizing:content-box;box-sizing:content-box}.medium-editor-insert-plugin p{margin:1em 0}.medium-editor-insert-plugin progress{display:block;margin:1em auto}.medium-editor-insert-plugin .hide{display:none!important}.medium-editor-insert-plugin.hover .mediumInsert-placeholder{min-height:14px;border:1px dashed #ddd;margin-top:-1px;margin-bottom:-1px}.medium-editor-insert-plugin.medium-editor-placeholder{padding-bottom:0!important;min-height:58px}.medium-editor-insert-plugin.medium-editor-placeholder:after{content:attr(data-placeholder)!important;top:1em}.mediumInsert{position:relative;margin-left:-40px!important;min-height:18px}.mediumInsert.small{width:calc(33.33% + 40px)}.mediumInsert .mediumInsert-buttonsShow{opacity:0;-webkit-transform:scale(0);-ms-transform:scale(0);transform:scale(0);-webkit-transition:all .08s cubic-bezier(.2,.3,.25,.9);transition:all .08s cubic-bezier(.2,.3,.25,.9);display:block;width:18px;height:18px;margin-top:-5px;border-radius:10px;border:2px solid;font-size:18px;line-height:18px;text-align:center;text-decoration:none!important}.mediumInsert .mediumInsert-buttonsShow:after{left:auto;right:100%;top:50%;margin-top:-4px}.mediumInsert .mediumInsert-buttons{position:absolute;width:40px;bottom:0;left:0;color:#ddd;font-size:.9em}.mediumInsert .mediumInsert-buttons a{text-decoration:underline;cursor:pointer}.mediumInsert .mediumInsert-buttons a.active{font-weight:700}.mediumInsert ul.mediumInsert-buttonsOptions{margin:0;padding:0;list-style:none;display:none;position:absolute;z-index:2;left:40px;top:-10px;border-radius:5px}.mediumInsert ul.mediumInsert-buttonsOptions button{min-height:auto;height:auto;padding:5px;border-left:none;float:none}.mediumInsert ul.mediumInsert-buttonsOptions button .fa{font-size:20px}.mediumInsert .mediumInsert-placeholder{position:relative;margin-left:40px;text-align:center}.mediumInsert .mediumInsert-images a{position:absolute;top:1em;width:30px;height:30px;background-color:#3b3b3b;background-repeat:no-repeat;background-position:center center;cursor:pointer}.mediumInsert .mediumInsert-imageRemove{right:0;background-image:url(../images/remove.png)}.mediumInsert .mediumInsert-imageResizeSmaller,.mediumInsert .mediumInsert-imageResizeBigger{right:31px;background-image:url(../images/resize-smaller.png)}.mediumInsert .mediumInsert-imageResizeBigger{background-image:url(../images/resize-bigger.png)}.mediumInsert .mediumInsert-error{background-color:#f2dede;border:1px solid #ebccd1;color:#a94442;padding:15px}.mediumInsert .mediumInsert-embedsPlaceholder{position:relative;padding:24px;height:160px;text-align:center;background-color:#fff}.mediumInsert .mediumInsert-embedsWire{position:absolute;left:50%;text-align:center}.mediumInsert .mediumInsert-embedsBox{position:relative;left:-250px}.mediumInsert .mediumInsert-embedsBox input[type="text"]{margin:0 auto;padding:10px;width:330px;border:solid 3px #ccc;font-size:1em;font-family:Arial,sans-serif;color:#aaa}.mediumInsert .mediumInsert-embedsBox input[type="text"]:focus{border:solid 1px #EEA34A}.mediumInsert .mediumInsert-embedsBox input::-webkit-input-placeholder{color:#aaa}.mediumInsert .mediumInsert-embedsBox button{border:solid 1px #2fbbfc;padding:11px 30px;font-family:Arial,sans-serif;font-size:1.2em;color:#fff;cursor:pointer;background-color:#2fbbfc}.mediumInsert .mediumInsert-embedsImage{font-size:100px;color:#999}.mediumInsert.hover .mediumInsert-placeholder{background:#f0f0f0}.mediumInsert:hover .mediumInsert-buttonsShow{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1);opacity:1}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox{background-color:#fff;border:2px solid #333;display:inline-block;z-index:50;position:relative}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox label,.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox button{color:#333;text-transform:capitalize}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox button.mediumInsert-tableReadyButton{background-color:#fff;border:1px solid #333}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox input.mediumInsert-tableCols,.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox input.mediumInsert-tableRows{width:50px;display:block;height:initial;background-color:inherit;border:1px solid #333;color:#333;margin:0 auto;text-align:center}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox table{margin:10px}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox table td{text-align:center}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox table.mediumInsert-demoTable{border-top:2px solid #333;border-left:2px solid #333;height:100px;width:100px}.mediumInsert .medium-editor-toolbar-form-anchor.mediumInsert-tableDemoBox table.mediumInsert-demoTable td{border-bottom:2px solid #333;border-right:2px solid #333}
\ No newline at end of file
diff --git a/dist/js/addons/medium-editor-insert-embeds.js b/dist/js/addons/medium-editor-insert-embeds.js
index f5ebe4459..452f9c8f2 100644
--- a/dist/js/addons/medium-editor-insert-embeds.js
+++ b/dist/js/addons/medium-editor-insert-embeds.js
@@ -16,7 +16,7 @@
*/
default: {
- urlPlaceholder: 'type or paste url here'
+ urlPlaceholder: 'Paste or type a link'
//,oembedProxy: 'http://medium.iframe.ly/api/oembed?iframe=1'
},
@@ -48,7 +48,7 @@
$.fn.mediumInsert.insert.deselect();
- var formHtml = '
';
+ var formHtml = '';
$(formHtml).appendTo($placeholder.prev());
setTimeout(function () {
$placeholder.prev().find('input').focus();
diff --git a/dist/js/addons/medium-editor-insert-embeds.min.js b/dist/js/addons/medium-editor-insert-embeds.min.js
index 86d5182dd..ed388d8f0 100644
--- a/dist/js/addons/medium-editor-insert-embeds.min.js
+++ b/dist/js/addons/medium-editor-insert-embeds.min.js
@@ -7,4 +7,4 @@
* Released under the MIT license
*/
-!function(a){a.fn.mediumInsert.registerAddon("embeds",{"default":{urlPlaceholder:"type or paste url here"},init:function(b){this.options=a.extend(this.default,b),this.$el=a.fn.mediumInsert.insert.$el,this.setEmbedButtonEvents(),this.preparePreviousEmbeds()},insertButton:function(a){var b="Embed";return("fontawesome"==a||"object"==typeof a&&a.fontawesome)&&(b=''),'"},add:function(b){a.fn.mediumInsert.insert.deselect();var c='';a(c).appendTo(b.prev()),setTimeout(function(){b.prev().find("input").focus()},50),a.fn.mediumInsert.insert.deselect(),this.currentPlaceholder=b,a(".mediumInsert-embedsText").focus()},preparePreviousEmbeds:function(){this.$el.find(".mediumInsert-embeds").each(function(){var b=a(this).parent();b.html('
'+b.html()+"
")})},setEmbedButtonEvents:function(){var b=this;a(document).on("keypress","input.mediumInsert-embedsText",function(a){(a.which&&13==a.which||a.keyCode&&13==a.keyCode)&&(b.setEnterActionEvents(),b.removeToolbar())}),this.$el.on("blur",".mediumInsert-embedsText",function(){b.removeToolbar()})},setEnterActionEvents:function(){function b(b){return b?(b=a('').append(b),c.currentPlaceholder.append(b),c.currentPlaceholder.closest("[data-medium-element]").trigger("keyup").trigger("input"),void 0):(alert("Incorrect URL format specified"),!1)}var c=this;if(a.fn.mediumInsert.settings.enabled===!1)return!1;var d=a("input.mediumInsert-embedsText").val();if(!d)return!1;if(!this.options.oembedProxy){var e=c.convertUrlToEmbedTag(d);return b(e)}c.getOEmbedHTML(d,function(a,c){var d=!a&&c&&c.html;c&&!c.html&&"photo"===c.type&&c.url&&(d=''),b(d)})},removeToolbar:function(){a(".mediumInsert-embedsWire").remove()},getOEmbedHTML:function(b,c){a.ajax({url:this.options.oembedProxy,dataType:"json",data:{url:b},success:function(a,b,d){c(null,a,d)},error:function(a,b,d){var e=function(){try{return JSON.parse(a.responseText)}catch(b){}}();c(e&&e.error||a.status||d.message,e,a)}})},convertUrlToEmbedTag:function(a){var b=a.replace(/\n?/g,"").replace(/^((http(s)?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/(watch\?v=|v\/)?)([a-zA-Z0-9-_]+)(.*)?$/,'').replace(/http:\/\/vimeo\.com\/(\d+)$/,'').replace(/http:\/\/instagram\.com\/p\/(.+)\/?$/,'');return/<("[^"]*"|'[^']*'|[^'">])*>/.test(b)?b:!1}})}(jQuery);
\ No newline at end of file
+!function(a){a.fn.mediumInsert.registerAddon("embeds",{"default":{urlPlaceholder:"Paste or type a link"},init:function(b){this.options=a.extend(this.default,b),this.$el=a.fn.mediumInsert.insert.$el,this.setEmbedButtonEvents(),this.preparePreviousEmbeds()},insertButton:function(a){var b="Embed";return("fontawesome"==a||"object"==typeof a&&a.fontawesome)&&(b=''),'"},add:function(b){a.fn.mediumInsert.insert.deselect();var c='';a(c).appendTo(b.prev()),setTimeout(function(){b.prev().find("input").focus()},50),a.fn.mediumInsert.insert.deselect(),this.currentPlaceholder=b,a(".mediumInsert-embedsText").focus()},preparePreviousEmbeds:function(){this.$el.find(".mediumInsert-embeds").each(function(){var b=a(this).parent();b.html('
'+b.html()+"
")})},setEmbedButtonEvents:function(){var b=this;a(document).on("keypress","input.mediumInsert-embedsText",function(a){(a.which&&13==a.which||a.keyCode&&13==a.keyCode)&&(b.setEnterActionEvents(),b.removeToolbar())}),this.$el.on("blur",".mediumInsert-embedsText",function(){b.removeToolbar()})},setEnterActionEvents:function(){function b(b){return b?(b=a('').append(b),c.currentPlaceholder.append(b),c.currentPlaceholder.closest("[data-medium-element]").trigger("keyup").trigger("input"),void 0):(alert("Incorrect URL format specified"),!1)}var c=this;if(a.fn.mediumInsert.settings.enabled===!1)return!1;var d=a("input.mediumInsert-embedsText").val();if(!d)return!1;if(!this.options.oembedProxy){var e=c.convertUrlToEmbedTag(d);return b(e)}c.getOEmbedHTML(d,function(a,c){var d=!a&&c&&c.html;c&&!c.html&&"photo"===c.type&&c.url&&(d=''),b(d)})},removeToolbar:function(){a(".mediumInsert-embedsWire").remove()},getOEmbedHTML:function(b,c){a.ajax({url:this.options.oembedProxy,dataType:"json",data:{url:b},success:function(a,b,d){c(null,a,d)},error:function(a,b,d){var e=function(){try{return JSON.parse(a.responseText)}catch(b){}}();c(e&&e.error||a.status||d.message,e,a)}})},convertUrlToEmbedTag:function(a){var b=a.replace(/\n?/g,"").replace(/^((http(s)?:\/\/)?(www\.)?(youtube\.com|youtu\.be)\/(watch\?v=|v\/)?)([a-zA-Z0-9-_]+)(.*)?$/,'').replace(/http:\/\/vimeo\.com\/(\d+)$/,'').replace(/http:\/\/instagram\.com\/p\/(.+)\/?$/,'');return/<("[^"]*"|'[^']*'|[^'">])*>/.test(b)?b:!1}})}(jQuery);
\ No newline at end of file
diff --git a/dist/js/medium-editor-insert-plugin.all.js b/dist/js/medium-editor-insert-plugin.all.js
index 80308d026..f746812ff 100644
--- a/dist/js/medium-editor-insert-plugin.all.js
+++ b/dist/js/medium-editor-insert-plugin.all.js
@@ -475,7 +475,7 @@
*/
default: {
- urlPlaceholder: 'type or paste url here'
+ urlPlaceholder: 'Paste or type a link'
//,oembedProxy: 'http://medium.iframe.ly/api/oembed?iframe=1'
},
@@ -507,7 +507,7 @@
$.fn.mediumInsert.insert.deselect();
- var formHtml = '';
+ var formHtml = '';
$(formHtml).appendTo($placeholder.prev());
setTimeout(function () {
$placeholder.prev().find('input').focus();
diff --git a/dist/js/medium-editor-insert-plugin.all.min.js b/dist/js/medium-editor-insert-plugin.all.min.js
index 2be5f239a..70985f0e5 100644
--- a/dist/js/medium-editor-insert-plugin.all.min.js
+++ b/dist/js/medium-editor-insert-plugin.all.min.js
@@ -7,4 +7,4 @@
* Released under the MIT license
*/
-!function(a){var b={};MediumEditor&&"function"==typeof MediumEditor&&(MediumEditor.prototype.serialize=function(){var b,c,d,e,f,g,h,i,j={};for(b=0;bb&&(b=c)}),b},getButtons:function(c){var d=a.fn.mediumInsert.settings.editor,e=d&&d.options?d.options.buttonLabels:"",f='
');b.buildTable(c),b.currentPlaceholder.append(c),b.currentPlaceholder.closest("[data-medium-element]").trigger("keyup").trigger("input")},removeToolbar:function(){a(".mediumInsert-tableDemoBox").remove()}})}(jQuery);
\ No newline at end of file
+!function(a){var b={};MediumEditor&&"function"==typeof MediumEditor&&(MediumEditor.prototype.serialize=function(){var b,c,d,e,f,g,h,i,j={};for(b=0;bb&&(b=c)}),b},getButtons:function(c){var d=a.fn.mediumInsert.settings.editor,e=d&&d.options?d.options.buttonLabels:"",f='