feature: color-styled tables in tinymce editor

This commit is contained in:
slawkens
2023-12-12 17:58:17 +01:00
parent 2b86ba94fe
commit 687c9a6690
4 changed files with 22 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
function tinymceInit() {
tinymce.init({
selector: "#editor",
content_css: '{{ constant('ADMIN_URL') }}template/style.css',
theme: "silver",
plugins: 'preview searchreplace autolink directionality visualblocks visualchars fullscreen image link media template codesample table charmap pagebreak nonbreaking anchor insertdatetime advlist lists wordcount help code emoticons',
toolbar1: 'formatselect | bold italic strikethrough forecolor backcolor | emoticons link | alignleft aligncenter alignright alignjustify | numlist bullist outdent indent | removeformat code',
@@ -17,6 +18,11 @@
relative_urls: true,
document_base_url: "{{ constant('BASE_URL') }}",
table_class_list: [
{title: 'None', value: ''},
{title: 'Colored Table', value: 'myaac-table'},
],
setup: function (ed) {
ed.on('NodeChange', function (e) {
if (ed.getContent() !== lastContent) {