Mercurial Hosting > sceditor
diff src/formats/xhtml.js @ 24:80a86fb8f2b7
minor
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Tue, 09 Aug 2022 22:49:59 -0600 |
parents | a199722647d0 |
children | 80bf0adc9efd |
line wrap: on
line diff
--- a/src/formats/xhtml.js Tue Aug 09 13:25:17 2022 -0600 +++ b/src/formats/xhtml.js Tue Aug 09 22:49:59 2022 -0600 @@ -506,7 +506,7 @@ * Init * @return {void} */ - base.init = function () { + base.init = function (editor) { if (!isEmptyObject(xhtmlFormat.converters || {})) { each( xhtmlFormat.converters, @@ -522,8 +522,8 @@ ); } - this.commands = extend(true, - {}, defaultCommandsOverrides, this.commands); + editor.commands = extend(true, + {}, defaultCommandsOverrides, editor.commands); }; /**