Skip to content

Commit

Permalink
Summer update
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Pulges committed Jul 3, 2014
1 parent 809aa55 commit 7d97559
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 16 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.textile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
*wysihtml5x 0.4.11* (July 03, 2014)
* Tests are now made with up to date Qunit (tanks @Waxolunist)
* Fixes an error that placeholder will not be displayed when whitespace present in editor

*wysihtml5x 0.4.10* (June 27, 2014)
* Solve inline formating issues when applying multiple styles
* Add a special case when deleting into heading with caret
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": "wysihtml5x",
"version": "0.4.10",
"version": "0.4.11",
"main": [
"dist/wysihtml5x.min.js",
"dist/wysihtml5x-toolbar.min.js"
Expand Down
7 changes: 4 additions & 3 deletions dist/wysihtml5x-toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(!Array.isArray) {
return Object.prototype.toString.call(arg) === '[object Array]';
};
};/**
* @license wysihtml5x v0.4.10
* @license wysihtml5x v0.4.11
* https://github.com/Edicy/wysihtml5
*
* Author: Christopher Blum (https://github.com/tiff)
Expand All @@ -36,7 +36,7 @@ if(!Array.isArray) {
*
*/
var wysihtml5 = {
version: "0.4.10",
version: "0.4.11",

// namespaces
commands: {},
Expand Down Expand Up @@ -11845,7 +11845,8 @@ wysihtml5.views.View = Base.extend(

isEmpty: function() {
var innerHTML = this.element.innerHTML.toLowerCase();
return innerHTML === "" ||
return (/^\s*$/i).test(innerHTML) ||
innerHTML === "" ||
innerHTML === "<br>" ||
innerHTML === "<p></p>" ||
innerHTML === "<p><br></p>" ||
Expand Down
6 changes: 3 additions & 3 deletions dist/wysihtml5x-toolbar.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wysihtml5x-toolbar.min.map

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions dist/wysihtml5x.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(!Array.isArray) {
return Object.prototype.toString.call(arg) === '[object Array]';
};
};/**
* @license wysihtml5x v0.4.10
* @license wysihtml5x v0.4.11
* https://github.com/Edicy/wysihtml5
*
* Author: Christopher Blum (https://github.com/tiff)
Expand All @@ -36,7 +36,7 @@ if(!Array.isArray) {
*
*/
var wysihtml5 = {
version: "0.4.10",
version: "0.4.11",

// namespaces
commands: {},
Expand Down Expand Up @@ -11845,7 +11845,8 @@ wysihtml5.views.View = Base.extend(

isEmpty: function() {
var innerHTML = this.element.innerHTML.toLowerCase();
return innerHTML === "" ||
return (/^\s*$/i).test(innerHTML) ||
innerHTML === "" ||
innerHTML === "<br>" ||
innerHTML === "<p></p>" ||
innerHTML === "<p><br></p>" ||
Expand Down
6 changes: 3 additions & 3 deletions dist/wysihtml5x.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wysihtml5x.min.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wysihtml5x",
"version": "0.4.10",
"version": "0.4.11",
"devDependencies": {
"grunt": "~0.4.4",
"grunt-contrib-concat": "~0.4.0",
Expand Down

0 comments on commit 7d97559

Please sign in to comment.