mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
16 lines
339 B
JavaScript
16 lines
339 B
JavaScript
|
/**
|
||
|
* A simple component to render a code editor within the textarea
|
||
|
* this exists upon.
|
||
|
* @extends {Component}
|
||
|
*/
|
||
|
class CodeTextarea {
|
||
|
|
||
|
async setup() {
|
||
|
const mode = this.$opts.mode;
|
||
|
const Code = await window.importVersioned('code');
|
||
|
Code.inlineEditor(this.$el, mode);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
export default CodeTextarea;
|