From f3b13ad389c8bb74b7a235c9c457e0c9cfd54319 Mon Sep 17 00:00:00 2001 From: Kibzik Date: Wed, 7 Jun 2023 18:39:02 +0300 Subject: [PATCH] Update style_config --- documentation/style_config | 166 +++++++++++++++++++------------------ 1 file changed, 85 insertions(+), 81 deletions(-) diff --git a/documentation/style_config b/documentation/style_config index 63064de..869ef30 100644 --- a/documentation/style_config +++ b/documentation/style_config @@ -1,127 +1,131 @@ config.allowedContent = { sub: { - classes: ['*'] + classes: [‘*’] }, sup: { - classes: ['*'], - attributes: ['data-id'] + classes: [‘*’], + attributes: [‘data-id’] }, table: { - attributes: ['*'], - styles: ['*'] + attributes: [‘*’], + styles: [‘*’] }, tr: { - attributes: ['*'], - styles: ['*'] + attributes: [‘*’], + styles: [‘*’] }, th: { - attributes: ['*'], - classes: ['p-indent'], - styles: ['*'] + attributes: [‘*’], + classes: [‘p-indent’], + styles: [‘*’] }, td: { - attributes: ['*'], - classes: ['p-indent'], - styles: ['*'] + attributes: [‘*’], + classes: [‘p-indent’], + styles: [‘*’] }, tbody: { - attributes: ['*'], - styles: ['*'] + attributes: [‘*’], + styles: [‘*’] }, thead: { - attributes: ['*'], - styles: ['*'] + attributes: [‘*’], + styles: [‘*’] }, caption : {}, img : { - attributes: ['*'], - classes: ['*'], - styles: ['*'] + attributes: [‘*’], + classes: [‘*’], + styles: [‘*’] }, code : { - attributes: ['*'], - classes: ['*'], - styles: ['*'] + attributes: [‘*’], + classes: [‘*’], + styles: [‘*’] + }, + pre : { + attributes: [‘*’], + classes: [‘*’], + styles: [‘*’] }, - pre : { - attributes: ['*'], - classes: ['*'], - styles: ['*'] - }, p : { - styles: ['text-align', - 'text-indent', - 'border', - 'border-bottom', - 'border-top', - 'border-left', - 'border-right', - 'background-color', - 'margin', - 'margin-top', - 'margin-left', - 'margin-right', - 'margin-bottom'], - classes: ['*'] + styles: [‘text-align’, + ‘text-indent’, + ‘border’, + ‘border-bottom’, + ‘border-top’, + ‘border-left’, + ‘border-right’, + ‘background’, + ‘background-color’, + ‘margin’, + ‘margin-top’, + ‘margin-left’, + ‘margin-right’, + ‘margin-bottom’], + classes: [‘*’] }, strong : {}, i : {}, s : {}, u : {}, ul : { - styles: ['list-style-type'] + styles: [‘list-style-type’] }, ol : { - styles: ['list-style-type'] + styles: [‘list-style-type’], + attributes: [‘start’, ‘reversed’], }, li : { - styles: ['text-align', 'list-style-type'] + styles: [‘text-align’, ‘list-style-type’], + attributes: [‘value’], }, blockquote : {}, span : { - attributes: ['*'], - classes: ['*'], - styles: ['*'] + attributes: [‘*’], + classes: [‘*’], + styles: [‘*’] }, a : { - attributes: ['href', 'data-anchor-id', 'data-chapter-id', 'placeholder'], - classes: ['link-to-anchor'], + attributes: [‘href’, ‘data-anchor-id’, ‘data-chapter-id’, ‘placeholder’], + classes: [‘link-to-anchor’], }, iframe : { - attributes: ['*'], - classes: ['*'], - styles: ['*'] + attributes: [‘*’], + classes: [‘*’], + styles: [‘*’] }, div : { - attributes: ['*'], - classes: ['youtube-embed-wrapper'], - styles: ['*'] + attributes: [‘*’], + classes: [‘youtube-embed-wrapper’], + styles: [‘*’] }, - 'h1 h2 h3 h4 h5 h6 h7 h8 h9': { - styles: ['text-align', - 'text-indent', - 'border', - 'border-bottom', - 'border-top', - 'border-left', - 'border-right', - 'background-color', - 'margin', - 'margin-top', - 'margin-left', - 'margin-right', - 'margin-bottom'], + ‘h1 h2 h3 h4 h5 h6 h7 h8 h9’: { + styles: [‘text-align’, + ‘text-indent’, + ‘border’, + ‘border-bottom’, + ‘border-top’, + ‘border-left’, + ‘border-right’, + ‘background-color’, + ‘background’, + ‘margin’, + ‘margin-top’, + ‘margin-left’, + ‘margin-right’, + ‘margin-bottom’], }, hr: { - styles: ['border', - 'border-bottom', - 'border-top', - 'border-left', - 'border-right', - 'margin', - 'margin-top', - 'margin-left', - 'margin-right', - 'margin-bottom'], + styles: [‘border’, + ‘border-bottom’, + ‘border-top’, + ‘border-left’, + ‘border-right’, + ‘margin’, + ‘margin-top’, + ‘margin-left’, + ‘margin-right’, + ‘margin-bottom’], } - }; \ No newline at end of file + };