Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed May 29, 2023
1 parent afb791b commit 8ad79ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,8 @@ textTags : You can change the tag of the default text button. default:
}
value : Initial value(html string) of the edit area.
If not, the value of the "target textarea". default: null {String}
allowedClassNames : Specifies the allowed class name, It can be specified in the form of a regular expression.
Appended before the "default" value. (`${option}|${defaultValue}`) default: '^se-|__se__|katex';
historyStackDelayTime : When recording the history stack, this is the delay time(miliseconds) since the last input. default: 400 {Number}
frameAttrbutes : Specifies the properties of the editing area DIV. default: {} {Object}
ex) {
Expand Down Expand Up @@ -868,6 +870,7 @@ templates : If you use a template plugin, add it.
]

// ETC------------------------------------------------------------------------------------------------------------
__allowedScriptTag : Allows script tags. default: false {Boolean}
placeholder : The placeholder text. default: null {String}
mediaAutoSelect : Activate the media[image, video, audio] selection status immediately after inserting the media tag. default: true {Boolean}
icons : You can redefine icons. default: null {Object}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -1750,7 +1750,7 @@ const util = {
* @returns {string} HTML string
*/
htmlCompress: function (html) {
return html.replace(/(>)(?:([^>]*)\n+)|(?:\s+)(<)/g, '$1$2$3');
return html.replace(/\n/g, '').replace(/(>)(?:\s+)(<)/g, '$1$2');
},

/**
Expand Down

0 comments on commit 8ad79ba

Please sign in to comment.