mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-24 18:58:46 +02:00
Use CKEDITOR 5 for all comment fields.
This commit is contained in:
parent
dde7e7347c
commit
898803e3ce
12 changed files with 112 additions and 75 deletions
|
@ -4,6 +4,8 @@ import { Controller } from '@hotwired/stimulus';
|
|||
import { marked } from "marked";
|
||||
import DOMPurify from 'dompurify';
|
||||
|
||||
import "../../css/markdown.css";
|
||||
|
||||
export default class extends Controller {
|
||||
|
||||
connect()
|
||||
|
@ -33,10 +35,15 @@ export default class extends Controller {
|
|||
a.setAttribute('rel', 'noopener');
|
||||
}
|
||||
|
||||
//Apply bootstrap styles to
|
||||
//Apply bootstrap styles to tables
|
||||
for(let table of this.element.querySelectorAll('table')) {
|
||||
table.classList.add('table', 'table-hover', 'table-striped', 'table-bordered', 'table-sm');
|
||||
}
|
||||
|
||||
//Make header line dark
|
||||
for(let head of this.element.querySelectorAll('thead')) {
|
||||
head.classList.add('table-dark');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue