MDL-82255 editor_tiny: Add blockquote in toolbar menu and styled

This commit is contained in:
raortegar 2024-08-24 13:17:04 +02:00
parent 056f473a6e
commit 51d0a1869c
4 changed files with 18 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -279,7 +279,7 @@ const getStandardConfig = (target, tinyMCE, options, plugins) => {
// Override the standard block formats property (removing h1 & h2).
// https://www.tiny.cloud/docs/tinymce/6/user-formatting-options/#block_formats
// eslint-disable-next-line camelcase
block_formats: 'Paragraph=p;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre',
block_formats: 'Paragraph=p;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6;Preformatted=pre;Blockquote=blockquote',
// The list of plugins to include in the instance.
// https://www.tiny.cloud/docs/tinymce/6/editor-important-options/#plugins

View File

@ -10,4 +10,18 @@ body.mce-content-body a[data-mce-selected="inline-boundary"] {
body.mce-content-body a {
color: #0f6cbf;
}
/** */
/** blockquote */
.mce-content-body:not([dir=rtl]) blockquote {
margin: 0 0.5rem 1rem;
padding-left: 1rem;
color: #495057;
border-left: 5px solid #8f959e;
}
.mce-content-body[dir=rtl] blockquote {
margin: 0 0.5rem 1rem;
padding-right: 1rem;
color: #495057;
border-right: 5px solid #8f959e;
}
/** */