How to set enterMode to CKEDITOR.ENTER_BR for a Text Datatype? #12019
Answered
by
hoekiesda
hoekiesda
asked this question in
Q&A / Support
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hoekiesda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Documentation says:
"It's possible to pass a custom CKEditor config object to the wysiwyg editor."
That might work in code, but the "Editor Configuration" option in the "Specific Settings" for a WYSIWYG Datatype in the Classes does not accept this JSON snippet. See screenshot below.
Pimcore demo says:
Validate JSON would be:
But I doubt that it means the same thing. Pimcore demo accepts this JSON and the toolbar is indeed altered. But no effect on the
<p></p>
wrapping behaviour of CKEditor, see: https://ckeditor.com/docs/ckeditor4/latest/features/enterkey.htmlI tried:
"enterMode": "CKEDITOR.CKEDITOR.ENTER_BR"
,"enterMode": CKEDITOR.CKEDITOR.ENTER_BR
,"enterMode": "CKEDITOR.ENTER_BR"
.Now i ask how to set the enterMode via the Class Definition? Thanks upfront!
Beta Was this translation helpful? Give feedback.
All reactions