Skip to content

Commit

Permalink
Version bump 0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
thijsw committed Jun 13, 2014
1 parent e480dee commit 6272035
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "angular-medium-editor",
"version": "0.0.4",
"version": "0.0.5",
"dependencies": {
"angular": "latest",
"medium-editor": "1.7.5"
"medium-editor": "1.8.*"
},
"main": "./dist/angular-medium-editor.js",
"devDependencies": {
"angular": "latest",
"angular-mocks": "latest",
"medium-editor": "1.7.5"
"medium-editor": "1.8.*"
}
}
3 changes: 2 additions & 1 deletion dist/angular-medium-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ angular.module('angular-medium-editor', []).directive('mediumEditor', function (
opts = angular.extend(opts, bindOpts);
};
prepOpts();
placeholder = opts.placeholder;
scope.$watch('bindOptions', function () {
// in case options are provided after mediumEditor directive has been compiled and linked (and after $render function executed)
// we need to re-initialize
Expand All @@ -36,7 +37,7 @@ angular.module('angular-medium-editor', []).directive('mediumEditor', function (
scope.$apply(function () {
// If user cleared the whole text, we have to reset the editor because MediumEditor
// lacks an API method to alter placeholder after initialization
if (iElement.html() == '<p><br></p>') {
if (iElement.html() === '<p><br></p>' || iElement.html() === '') {
opts.placeholder = placeholder;
var editor = new MediumEditor(iElement, opts);
}
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-medium-editor.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 package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-medium-editor",
"version": "0.0.4",
"version": "0.0.5",
"description": "AngularJS directive for Medium.com editor clone",
"keywords": [
"angular",
Expand Down

0 comments on commit 6272035

Please sign in to comment.