0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-19 22:51:30 +00:00

Made the "Custom HTML Head Content" setting a highlighted code editor

This commit is contained in:
Dan Brown 2022-05-17 17:39:31 +01:00
parent cb1c2db282
commit 4759fa1e1f
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
4 changed files with 40 additions and 1 deletions
resources/js/components

View file

@ -0,0 +1,16 @@
/**
* 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;