]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/code-textarea.js
Added method for using enity ownership in relation queries
[bookstack] / resources / js / components / code-textarea.js
index 988e51f199f040f57846869a029e9d6dfabc712d..0e49aec1755693c8615fa1447e37b1fe549b3545 100644 (file)
@@ -1,9 +1,10 @@
 /**
  * A simple component to render a code editor within the textarea
  * this exists upon.
- * @extends {Component}
  */
-class CodeTextarea {
+import {Component} from "./component";
+
+export class CodeTextarea extends Component {
 
     async setup() {
         const mode = this.$opts.mode;
@@ -11,6 +12,4 @@ class CodeTextarea {
         Code.inlineEditor(this.$el, mode);
     }
 
-}
-
-export default CodeTextarea;
\ No newline at end of file
+}
\ No newline at end of file