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

Commit

Permalink
add posibility to insert stuff at the very beginning of the editor, b…
Browse files Browse the repository at this point in the history
…efore the first paragraph

change width of small image (from fixed width to max-width)
  • Loading branch information
linkesch committed Aug 22, 2014
1 parent 7780220 commit d9309ae
Show file tree
Hide file tree
Showing 24 changed files with 107 additions and 37 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ For styling the content in frontend (where it will be read only without editing
## <a name="options"></a>Options

- **editor**: (MediumEditor) instance of MediumEditor
- **beginning**: (boolean) whether inserting at the very beginning of the editor should be possible (in other words, if the first placeholder for instering should be placed as the first element of the editor, or after the first parahraph). Default: *false*
- **addons**: (object) keys are names of used addons and values are objects of addons options. (NOTICE: Remember to use medium-editor-insert-plugin.all.min.js, which includes all addons, or separately load medium-editor-insert-plugin.min.js and medium-editor-insert-{ADDON-NAME}.min.js).
- **images**:
- **imagesUploadScript**: (string) relative path to a script that handles file uploads. Default: *upload.php*
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medium-editor-insert-plugin",
"version": "0.2.10",
"version": "0.2.11",
"description": "jQuery insert plugin for MediumEditor",
"main": [
"dist/js/medium-editor-insert-plugin.all.js",
Expand Down
9 changes: 6 additions & 3 deletions dist/css/medium-editor-insert-plugin-frontend.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* medium-editor-insert-plugin v0.2.10 - jQuery insert plugin for MediumEditor
* medium-editor-insert-plugin v0.2.11 - jQuery insert plugin for MediumEditor
*
* https://github.com/orthes/medium-editor-insert-plugin
*
Expand Down Expand Up @@ -47,6 +47,9 @@
border-bottom: 2px solid #333;
padding: 12px; }
.mediumInsert.small {
width: 33.33%;
max-width: 33.33%;
float: left;
margin-right: 30px; }
margin-right: 30px;
margin-bottom: 20px; }
.mediumInsert.mediumInsert-first {
margin-top: 0; }
4 changes: 2 additions & 2 deletions 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.

11 changes: 7 additions & 4 deletions dist/css/medium-editor-insert-plugin.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* medium-editor-insert-plugin v0.2.10 - jQuery insert plugin for MediumEditor
* medium-editor-insert-plugin v0.2.11 - jQuery insert plugin for MediumEditor
*
* https://github.com/orthes/medium-editor-insert-plugin
*
Expand Down Expand Up @@ -47,9 +47,12 @@
border-bottom: 2px solid #333;
padding: 12px; }
.mediumInsert.small {
width: 33.33%;
max-width: 33.33%;
float: left;
margin-right: 30px; }
margin-right: 30px;
margin-bottom: 20px; }
.mediumInsert.mediumInsert-first {
margin-top: 0; }

.medium-editor-insert-plugin {
/* Prevent the text contents of draggable elements from being selectable. */ }
Expand Down Expand Up @@ -107,7 +110,7 @@
margin-left: -40px !important;
min-height: 18px; }
.mediumInsert.small {
width: calc(33.33% + 40px); }
max-width: calc(33.33% + 40px); }
.mediumInsert .mediumInsert-buttonsShow {
opacity: 0;
-webkit-transform: scale(0);
Expand Down
4 changes: 2 additions & 2 deletions 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.

2 changes: 1 addition & 1 deletion dist/js/addons/medium-editor-insert-embeds.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* medium-editor-insert-plugin v0.2.10 - jQuery insert plugin for MediumEditor
* medium-editor-insert-plugin v0.2.11 - jQuery insert plugin for MediumEditor
*
* https://github.com/orthes/medium-editor-insert-plugin
*
Expand Down
2 changes: 1 addition & 1 deletion dist/js/addons/medium-editor-insert-embeds.min.js

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

2 changes: 1 addition & 1 deletion dist/js/addons/medium-editor-insert-images.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* medium-editor-insert-plugin v0.2.10 - jQuery insert plugin for MediumEditor
* medium-editor-insert-plugin v0.2.11 - jQuery insert plugin for MediumEditor
*
* https://github.com/orthes/medium-editor-insert-plugin
*
Expand Down
2 changes: 1 addition & 1 deletion dist/js/addons/medium-editor-insert-images.min.js

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

2 changes: 1 addition & 1 deletion dist/js/addons/medium-editor-insert-maps.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* medium-editor-insert-plugin v0.2.10 - jQuery insert plugin for MediumEditor
* medium-editor-insert-plugin v0.2.11 - jQuery insert plugin for MediumEditor
*
* https://github.com/orthes/medium-editor-insert-plugin
*
Expand Down
Loading

0 comments on commit d9309ae

Please sign in to comment.