Skip to content

Add Block: Continuous Text #447

@jasmussen

Description

@jasmussen

Per discussion in #409 (comment), let's try two block approaches at the same time:

  • Different paragraphs are separate text blocks.
  • Contiguous paragraphs are part of the same text block.

In both cases a double (or single) enter would show the block-insert menu to the left. Depending on what you do next we would break out from the current text block or continue.

Block:

text

Inserter:

Inserter at the end:

Inserter between content:

Invoking the inserter between paragraphs in a continuous text block is difficult, as @youknowriad puts it:

It's just a hard task because we're mainly considering the Editable component (the TinyMCE wrapper) as a black box while this block means we'll need to figure when and how to get the inserter at the right place inside this component.

However this issue is likely going to come up again in context of other blocks, like the freeform and/or TinyMCE block,

Related:

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrameworkIssues related to broader framework topics, especially as it relates to javascript[Type] TaskIssues or PRs that have been broken down into an individual action to take

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions