Skip to content

Commit

Permalink
maint(pat-texteditor): Use class based extension of @patternslib/pat-…
Browse files Browse the repository at this point in the history
…code-editor.
  • Loading branch information
thet committed Dec 12, 2022
1 parent 70c8c6b commit 1557679
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pat/texteditor/texteditor.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import CodeEditor from "@patternslib/pat-code-editor/src/code-editor.js";
import Registry from "@patternslib/patternslib/src/core/registry";

const Pattern = CodeEditor.extend({
name: "texteditor",
trigger: ".pat-texteditor",
});
class Pattern extends CodeEditor {
static name = "texteditor";
static trigger = ".pat-texteditor";
}

Registry.register(Pattern);
export default Pattern;
export { Pattern };

0 comments on commit 1557679

Please sign in to comment.