Skip to content

Commit

Permalink
Merge pull request tiff#90 from cs/master
Browse files Browse the repository at this point in the history
Allow Digits in HTML class names in commands
  • Loading branch information
tiff committed May 30, 2012
2 parents ebafa27 + ef7cce9 commit 136f797
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/commands/fontSize.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
(function(wysihtml5) {
var undef,
REG_EXP = /wysiwyg-font-size-[a-z\-]+/g;
REG_EXP = /wysiwyg-font-size-[0-9a-z\-]+/g;

wysihtml5.commands.fontSize = {
exec: function(composer, command, size) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/foreColor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
(function(wysihtml5) {
var undef,
REG_EXP = /wysiwyg-color-[a-z]+/g;
REG_EXP = /wysiwyg-color-[0-9a-z]+/g;

wysihtml5.commands.foreColor = {
exec: function(composer, command, color) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/justifyCenter.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function(wysihtml5) {
var undef,
CLASS_NAME = "wysiwyg-text-align-center",
REG_EXP = /wysiwyg-text-align-[a-z]+/g;
REG_EXP = /wysiwyg-text-align-[0-9a-z]+/g;

wysihtml5.commands.justifyCenter = {
exec: function(composer, command) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/justifyLeft.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function(wysihtml5) {
var undef,
CLASS_NAME = "wysiwyg-text-align-left",
REG_EXP = /wysiwyg-text-align-[a-z]+/g;
REG_EXP = /wysiwyg-text-align-[0-9a-z]+/g;

wysihtml5.commands.justifyLeft = {
exec: function(composer, command) {
Expand Down
2 changes: 1 addition & 1 deletion src/commands/justifyRight.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function(wysihtml5) {
var undef,
CLASS_NAME = "wysiwyg-text-align-right",
REG_EXP = /wysiwyg-text-align-[a-z]+/g;
REG_EXP = /wysiwyg-text-align-[0-9a-z]+/g;

wysihtml5.commands.justifyRight = {
exec: function(composer, command) {
Expand Down

0 comments on commit 136f797

Please sign in to comment.