Skip to content
This repository has been archived by the owner on Sep 11, 2020. It is now read-only.

Commit

Permalink
fix embed input style
Browse files Browse the repository at this point in the history
  • Loading branch information
linkesch committed Aug 20, 2014
1 parent 285baef commit acc6fed
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
2 changes: 0 additions & 2 deletions dist/css/medium-editor-insert-plugin.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/medium-editor-insert-plugin.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/js/addons/medium-editor-insert-embeds.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'
},

Expand Down Expand Up @@ -48,7 +48,7 @@
$.fn.mediumInsert.insert.deselect();


var formHtml = '<div class="medium-editor-toolbar-form-anchor mediumInsert-embedsWire" style="display: block;"><input type="text" value="" placeholder="' + this.options.urlPlaceholder + '" class="mediumInsert-embedsText"></div>';
var formHtml = '<div class="medium-editor-toolbar medium-editor-toolbar-active medium-editor-toolbar-form-anchor mediumInsert-embedsWire" style="display: block;"><input type="text" value="" placeholder="' + this.options.urlPlaceholder + '" class="mediumInsert-embedsText"></div>';
$(formHtml).appendTo($placeholder.prev());
setTimeout(function () {
$placeholder.prev().find('input').focus();
Expand Down
Loading

0 comments on commit acc6fed

Please sign in to comment.