Use CKEDITOR 5 for all comment fields.

This commit is contained in:
Jan Böhmer 2022-07-26 21:23:31 +02:00
parent dde7e7347c
commit 898803e3ce
12 changed files with 112 additions and 75 deletions

View file

@ -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');
}
}
/**