Skip to content

Commit

Permalink
refactor(converter): Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Nov 8, 2024
1 parent a5b2db1 commit 765d166
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -236,17 +236,17 @@ const HtmlEditor = Editor.inherit({
return sanitizedHtml;
},

_applyHtmlConverterFromHtml(value: string): string {
const result = isFunction(this._htmlConverter?.fromHtml)
? String(this._htmlConverter.fromHtml(value))
_applyHtmlConverterToHtml(value: string): string {
const result = isFunction(this._htmlConverter?.toHtml)
? String(this._htmlConverter.toHtml(value))
: value;

return result;
},

_applyHtmlConverterToHtml(value: string): string {
const result = isFunction(this._htmlConverter?.toHtml)
? String(this._htmlConverter.toHtml(value))
_applyHtmlConverterFromHtml(value: string): string {
const result = isFunction(this._htmlConverter?.fromHtml)
? String(this._htmlConverter.fromHtml(value))
: value;

return result;
Expand Down

0 comments on commit 765d166

Please sign in to comment.