]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/code-textarea.js
Attachments: Hid edit/delete controls where lacking permission
[bookstack] / resources / js / components / code-textarea.js
index 0e49aec1755693c8615fa1447e37b1fe549b3545..2f536da0b7af692048f1bd9d3c89d6f4be693a7b 100644 (file)
@@ -2,14 +2,14 @@
  * A simple component to render a code editor within the textarea
  * this exists upon.
  */
-import {Component} from "./component";
+import {Component} from './component';
 
 export class CodeTextarea extends Component {
 
     async setup() {
-        const mode = this.$opts.mode;
+        const {mode} = this.$opts;
         const Code = await window.importVersioned('code');
         Code.inlineEditor(this.$el, mode);
     }
 
-}
\ No newline at end of file
+}