CCALI / a2jauthor

CALI A2JAuthor document automation authoring and viewing platform
https://www.a2jauthor.org
Other
4 stars 1 forks source link

Text indent is being stripped out of DAT rich text elements (ck-editor) #305

Closed JessicaFrank closed 2 years ago

JessicaFrank commented 2 years ago

Author attempting to use 'text-indent' in a rich text element in the DAT Text Templates to do a first word indent in a paragraph. Editor is stripping it out. This happens for both

and

elements.

Work around is to use 'margin-left', but that indents the entire paragraph, not just the first word of a paragraph of unknown text length.

*issue submitted by LSLA

JessicaFrank commented 2 years ago

Author suggestion: I imagine that changing “config.js” to configure extraAllowedContent to allow the style might work. I’m seeing https://stackoverflow.com/questions/15659390/ckeditor-automatically-strips-classes-from-div/15659962#15659962 as a suggestion for CKEditor 4.1+.

tobiasnteireho commented 2 years ago

altered config.js and rebuilt but settings did not take effect. Need more investigation

tobiasnteireho commented 2 years ago
tobiasnteireho commented 2 years ago

would it be sufficient in the meantime to just use spaces at the beginning of he paragraph? ckeditor keeps them as non-breaking spaces

tobiasnteireho commented 2 years ago