Consider supporting a way to configure the editor for "Phrasing Content Only" #11697
Labels
resolution:duplicate
This issue is a duplicate of another issue and was merged into it.
type:feature
This issue reports a feature request (an idea for a new functionality or a missing option).
Background
Historically speaking in CKEditor4 there were three enter modes:
<p>
,<br>
, and<div>
. These modes all seem to make the assumption that the root context for CKEditor was block level. For systems that use CKEditor to syndicate content to third parties, this assumption does not hold true -- especially if some of the third parties are difficult and/or impossible to work with.Some root contexts can only support a limited subset of HTML. For the purpose of this feature request, I'll be focusing on Phrasing Content. Basically (this might be an oversimplification...) Phrasing Content is the stuff that makes up paragraphs. In other words, the element types that are able to be included in a
<p>
element type.Suppose that a content consumer renders CKEditor markup on their platform as follows:
As it stands, CKEditor is not a valid tool for this use case because it would form markup in one of the following varieties:
or
For situations where the content consumer is unable or unwilling to make accommodations on their platform, this forms a hard blocker.
📝 Provide a description of the new feature
This new feature would allow editor configurations to remove the assumption that all content should be wrapped in a block level element. Due to the decoupled nature of CKEditor5, it seems like this might be more feasible than it was in the past?
What is the expected behavior of the proposed feature?
TBD
If you'd like to see this feature implemented, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: