Skip to content

Commit

Permalink
Update version again
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Pulges committed Jul 3, 2014
1 parent a0e2d83 commit 55a1efc
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 20 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.textile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
*wysihtml5x 0.4.12* (July 03, 2014)
* Fixes some placeholder problems targeting Firefox and Safari.

*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
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.11",
"version": "0.4.12",
"main": [
"dist/wysihtml5x.min.js",
"dist/wysihtml5x-toolbar.min.js"
Expand Down
13 changes: 10 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.11
* @license wysihtml5x v0.4.12
* 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.11",
version: "0.4.12",

// namespaces
commands: {},
Expand Down Expand Up @@ -7046,6 +7046,13 @@ wysihtml5.dom.replaceWithChildNodes = function(node) {
unset = function() {
if (view.hasPlaceholderSet()) {
view.clear();
view.element.focus();
setTimeout(function() {
var sel = view.selection.getSelection();
if (!sel.focusNode || !sel.anchorNode) {
view.selection.selectNode(view.element.firstChild || view.element);
}
}, 0);
}
view.placeholderSet = false;
dom.removeClass(view.element, CLASS_NAME);
Expand Down Expand Up @@ -11845,7 +11852,7 @@ wysihtml5.views.View = Base.extend(

isEmpty: function() {
var innerHTML = this.element.innerHTML.toLowerCase();
return (/^\s*$/i).test(innerHTML) ||
return (/^(\s|<br>|<\/br>|<p>|<\/p>)*$/i).test(innerHTML) ||
innerHTML === "" ||
innerHTML === "<br>" ||
innerHTML === "<p></p>" ||
Expand Down
10 changes: 5 additions & 5 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.

13 changes: 10 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.11
* @license wysihtml5x v0.4.12
* 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.11",
version: "0.4.12",

// namespaces
commands: {},
Expand Down Expand Up @@ -7046,6 +7046,13 @@ wysihtml5.dom.replaceWithChildNodes = function(node) {
unset = function() {
if (view.hasPlaceholderSet()) {
view.clear();
view.element.focus();
setTimeout(function() {
var sel = view.selection.getSelection();
if (!sel.focusNode || !sel.anchorNode) {
view.selection.selectNode(view.element.firstChild || view.element);
}
}, 0);
}
view.placeholderSet = false;
dom.removeClass(view.element, CLASS_NAME);
Expand Down Expand Up @@ -11845,7 +11852,7 @@ wysihtml5.views.View = Base.extend(

isEmpty: function() {
var innerHTML = this.element.innerHTML.toLowerCase();
return (/^\s*$/i).test(innerHTML) ||
return (/^(\s|<br>|<\/br>|<p>|<\/p>)*$/i).test(innerHTML) ||
innerHTML === "" ||
innerHTML === "<br>" ||
innerHTML === "<p></p>" ||
Expand Down
10 changes: 5 additions & 5 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.11",
"version": "0.4.12",
"devDependencies": {
"grunt": "~0.4.4",
"grunt-contrib-concat": "~0.4.0",
Expand Down

0 comments on commit 55a1efc

Please sign in to comment.