BookStackApp/BookStack

View on GitHub
resources/js/components/code-textarea.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * 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);
    }

}