Skip to content

Commit

Permalink
2.38.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 authored Apr 11, 2021
2 parents 01faf1f + 19bcbb7 commit f902bf0
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ maxHeight : The max-height size of the editor.
// Editing area default style------------------------------------------------------------------------------------
defaultStyle : You can define the style of the edit area. (className: 'sun-editor-editable')
It affects the entire editing area. default: '' {String}
('z-index', 'position' and 'width' properties apply to the top div.)
ex) 'font-family: cursive; font-size: 10px;'

// Defining menu items-------------------------------------------------------------------------------------------
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": "suneditor",
"version": "2.38.0",
"version": "2.38.1",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion dist/css/suneditor.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/suneditor.min.js

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
Expand Up @@ -3,7 +3,7 @@
"sideEffects": [
"./src/assets/css/*.css"
],
"version": "2.38.0",
"version": "2.38.1",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
1 change: 0 additions & 1 deletion src/assets/css/suneditor-contents.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
font-family: inherit;
font-size: inherit;
color: inherit;
white-space: normal !important;
}

/* RTL - editable */
Expand Down
2 changes: 1 addition & 1 deletion src/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -1781,7 +1781,7 @@ const util = {
for (let i = 0, len = styleArr.length, s; i < len; i++) {
s = styleArr[i].trim();
if (!s) continue;
if (/^(min-|max-)?width\s*:/.test(s)) {
if (/^(min-|max-)?width\s*:/.test(s) || /^(z-index|position)\s*:/.test(s)) {
top += s + ';';
continue;
}
Expand Down

0 comments on commit f902bf0

Please sign in to comment.