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

Commit

Permalink
Merge pull request #84 from itteco/oembed-proxy
Browse files Browse the repository at this point in the history
Oembed proxy
  • Loading branch information
linkesch committed Aug 20, 2014
2 parents 888ad06 + 49b68d9 commit 285baef
Show file tree
Hide file tree
Showing 13 changed files with 207 additions and 71 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
bower_components/
node_modules/
examples/uploads/*
.idea/
.idea/
server.js
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The plugins enables users to insert into the editor various types of content (de
Current available addons:

- images
- embeds (it can embed various social services - Youtube, Vimeo, Twitter, Facebook, Instagram)
- embeds (either through oEmbed proxy, such as [Iframely](https://iframely.com), or pre-defined parsers such as - Youtube, Vimeo, Twitter, Facebook, Instagram)
- tables (basic table creating)

More are coming soon...
Expand Down Expand Up @@ -82,7 +82,9 @@ $(function () {
editor: editor,
addons: {
images: {},
embeds: {},
embeds: {
oembedProxy: 'http://medium.iframe.ly/api/oembed?iframe=1'
},
tables: {}
}
});
Expand Down Expand Up @@ -115,6 +117,7 @@ For styling the content in frontend (where it will be read only without editing
- **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*
- **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*
- **defaultCols**: (integer) default number of columns. Default: *2*
Expand Down
2 changes: 2 additions & 0 deletions dist/css/medium-editor-insert-plugin-frontend.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
padding: 15px; }
.mediumInsert .mediumInsert-embeds iframe {
margin: 0px auto !important; }
.mediumInsert .mediumInsert-embeds div {
margin: 0px auto !important; }
.mediumInsert .mediumInsert-images {
margin-right: 10px;
width: 20%; }
Expand Down
2 changes: 1 addition & 1 deletion dist/css/medium-editor-insert-plugin-frontend.min.css

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

2 changes: 2 additions & 0 deletions dist/css/medium-editor-insert-plugin.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
padding: 15px; }
.mediumInsert .mediumInsert-embeds iframe {
margin: 0px auto !important; }
.mediumInsert .mediumInsert-embeds div {
margin: 0px auto !important; }
.mediumInsert .mediumInsert-images {
margin-right: 10px;
width: 20%; }
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.

Loading

0 comments on commit 285baef

Please sign in to comment.