mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-15 07:33:36 +08:00
e711290d8b
Had to do some manual fixing of the app.js file due to misplaced comments
16 lines
348 B
JavaScript
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);
|
|
}
|
|
|
|
}
|