From da6e05064de1671bba0c95f622107c52ddec555d Mon Sep 17 00:00:00 2001 From: Kibzik Date: Thu, 16 Mar 2023 12:09:47 +0300 Subject: [PATCH] Clean of "< >" --- documentation/style_config | 58 ++++++++++++++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 6 deletions(-) diff --git a/documentation/style_config b/documentation/style_config index 10fcb42..63064de 100644 --- a/documentation/style_config +++ b/documentation/style_config @@ -1,8 +1,11 @@ config.allowedContent = { - sup: { - attributes: ['*'], + sub: { classes: ['*'] }, + sup: { + classes: ['*'], + attributes: ['data-id'] + }, table: { attributes: ['*'], styles: ['*'] @@ -46,17 +49,33 @@ config.allowedContent = { styles: ['*'] }, p : { - styles: ['text-align', 'text-indent', 'border-bottom', 'border-top'], + 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: ['*'] }, strong : {}, i : {}, s : {}, u : {}, - ul : {}, - ol : {}, + ul : { + styles: ['list-style-type'] + }, + ol : { + styles: ['list-style-type'] + }, li : { - styles: ['text-align'] + styles: ['text-align', 'list-style-type'] }, blockquote : {}, span : { @@ -77,5 +96,32 @@ config.allowedContent = { 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'], + }, + hr: { + 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