Skip to content

Commit

Permalink
fix: #543 core.setContents
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Nov 3, 2020
1 parent 3979a76 commit f066541
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4409,6 +4409,8 @@ export default function (context, pluginCallButtons, plugins, lang, options, _re
* @param {String} html HTML string
*/
setContents: function (html) {
this.removeRange();

const convertValue = this.convertContentsForEditor(html);
this._resetComponents();

Expand Down

0 comments on commit f066541

Please sign in to comment.