mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-30 20:53:45 +08:00
15 lines
350 B
JavaScript
15 lines
350 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.mode;
|
|
const Code = await window.importVersioned('code');
|
|
Code.inlineEditor(this.$el, mode);
|
|
}
|
|
|
|
} |