Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TASK: support span-like editable mode for CKE5 #2018

Merged
merged 2 commits into from
Jul 20, 2018

Conversation

dimaip
Copy link
Contributor

@dimaip dimaip commented Jul 19, 2018

This feature disables creation of paragraphs for span and heading elements. Also it configures [enter] key to produce soft line breaks.

It's also possible to enable this mode with this config:

formatting:
  paragraph: false

Under the hood it works a bit hackishly: it re-maps paragraph model elements to <span> tags, and then removes the wrapping span in post-processing. There are other ways to do it, but this one is the most reliable one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants