BookStack/resources/js/components/code-textarea.js
Dan Brown e711290d8b
Ran eslint fix on existing codebase
Had to do some manual fixing of the app.js file due to misplaced
comments
2023-04-18 22:20:02 +01:00

16 lines
348 B
JavaScript

/**
* A simple component to render a code editor within the textarea
* this exists upon.
*/
import {Component} from './component';
export class CodeTextarea extends Component {
async setup() {
const {mode} = this.$opts;
const Code = await window.importVersioned('code');
Code.inlineEditor(this.$el, mode);
}
}