core icon indicating copy to clipboard operation
core copied to clipboard

Block Editor 3.0: standards, accessibility & feature parity

Open rjvelazco opened this issue 7 months ago • 4 comments

Description

Block Editor v3 is the umbrella effort to modernize the dotCMS Block Editor (Story Block) field. It establishes an Angular-idiomatic coding standard and documentation for the editor codebase, delivers the new editor (libs/new-block-editor/) at feature parity with the legacy editor, and groups the accessibility, feature, and bug-fix work that supports that transition.

The legacy Block Editor lacks a consistent coding standard and sufficient documentation, making it hard to maintain, extend, and onboard into. v3 defines patterns for component structure, service usage, signals, reactive forms, and dependency injection; audits existing code against them; adds TSDoc to public APIs; and ships the v3 editor with the capabilities customers rely on today.

Customer value: content authors get a more reliable, accessible editing experience, and engineering gains a predictable, well-documented foundation for future Block Editor work.

Desired Outcome

The effort has landed successfully when:

  • [ ] A Block Editor coding standard document is defined, team-approved, and linked from the Block Editor module README
  • [ ] Public services and components have TSDoc covering purpose, inputs, outputs, and usage
  • [ ] Block Editor code follows Angular idioms: signals, reactive patterns, DI, and component encapsulation
  • [ ] The new editor (v3) reaches feature parity with the legacy editor before reaching customers
  • [ ] Accessibility gaps tracked under this epic are resolved (semantic table markup, SDK renderer DOM, etc.)
  • [ ] Deviations from the standard are either fixed or tracked as explicit follow-up debt

Progress is tracked through the sub-issues linked to this epic.

Target Personas

  • [x] Developer teams
  • [x] Content teams
  • [ ] DevOps teams
  • [ ] System administrators (dotCMS)

Links

rjvelazco avatar Apr 08 '26 15:04 rjvelazco

Note For QA

The Feature Flag is: FEATURE_FLAG_NEW_BLOCK_EDITOR or DOT_FEATURE_FLAG_NEW_BLOCK_EDITOR

rjvelazco avatar May 08 '26 15:05 rjvelazco

QA Passed:

Feature Flag FEATURE_FLAG_NEW_BLOCK_EDITOR to enable the blog editor is working:

https://github.com/user-attachments/assets/0ef701e5-55c5-4b83-9394-c5524a73b038

dario-daza avatar May 08 '26 21:05 dario-daza

Hi @rjvelazco , just FYI, we needed to differentiate this block editor update from the previous one from last year which was 2.0. So I renamed everything to 3.0 here.

mboutillette-dotcms avatar Jun 18 '26 17:06 mboutillette-dotcms

Documentation Assessment — Block Editor 3.0: standards, accessibility & feature parity (#35262)

action: update urlTitle: block-editor-v3

Determination

This Epic delivers end-user-visible, documentable changes to the Block Editor field, and the existing public documentation page covering the new editor (block-editor-v3) is now out of date on several points this Epic's sub-issues shipped. An update is warranted rather than a new page, since the page already exists and most of this Epic's user-facing surface belongs inside it.

Most of the Epic's own scope is explicitly internal and not documentable in public docs: a team-approved coding standard, TSDoc coverage on internal services/components, and an Angular-idiom code audit are developer-process artifacts, not product behavior. Several sub-issues are pure bug fixes with no new surface to describe (scroll-jump on empty-line delete, table header toggle only affecting the first row/column, z-index/overlay stacking in fullscreen, JSP style isolation, list markers not rendering in the web component, an attrs: null contract bug, and a content-corruption save bug). None of these change what a reader does or sees beyond "it now works correctly," so they don't need their own documentation.

Four sub-issues, however, changed real end-user behavior that the current page does not reflect:

  1. #36254 / PR #36257 — the new editor became the default, not an opt-in beta. The current block-editor-v3 page still reads: "Block Editor v3 is currently a beta feature, disabled by default" and frames the feature flag purely as something you turn on. That is stale — the flag was flipped to default-on in the 26.07.13-01 release (rollback to the legacy editor is still available by explicitly setting the flag to false).
  2. #36361 / PR #36368 — images can now be linked. Selecting an image and clicking the toolbar Link button previously replaced the image with a text link. It now opens an image-specific link mode (URL + "open in new tab," no text field) that preserves the image and adds a trash-can action to remove the link. The page's "Inline Link Editing" section only describes editing text links; it has no mention of image links at all.
  3. #35890 / PR #35907 — internal page search returned to the link popover. Typing a partial title or path in the link URL field now searches dotCMS pages and shows an autocomplete dropdown (title, path, thumbnail); picking a result fills in the link, and pasting/typing an external URL still works unchanged. The current page's "Inline Link Editing" section describes only editing an existing link's URL/text/new-tab toggle — it doesn't mention this search-driven way of creating one.
  4. #35720 / PR #35740 — table accessibility attributes. The page's "Tables" section already mentions adding a caption, but doesn't mention the other two attributes this work added: aria-label / aria-labelledby (settable from the same table-properties control) and automatic scope="col"/scope="row" on header cells (author-overridable).

The fifth genuinely new, documentable surface — the accessible SDK renderer (DotCMSBlockEditorRendererNative, from #35852/PR #35855) — is already fully documented on the sdk-angular-library page (inputs, usage example, migration note, and the accessibility rationale), confirmed via search. No action needed there.

I ran semantic searches against the documentation site for "Block Editor," the feature-flag default, table accessibility attributes, image linking, and the accessible SDK renderer, and read the full block-editor-v3, block-editor, and sdk-angular-library pages to confirm the gaps above and rule out duplicating already-covered ground (block types, JSON schema, VTL/headless rendering, and the SDK renderer are all already correctly documented and untouched by this analysis). I also found two short marketing/changelog-style pages (enhanced-block-editor-to-make-content-creation-more-familiar-and-focused and a-more-familiar-and-focused-way-to-write-in-dotcms) that reference a toolbar/focus-mode/asset-picker overhaul; that work is tracked as a separate, later initiative in the product's planning materials and is out of scope for this Epic's sub-issues, so I have not folded it into this draft.

The draft below is the complete block-editor-v3 page with the four gaps closed: the feature-flag callout now describes default-on with an opt-out rollback path, the "Inline Link Editing" section covers both page-search-driven link creation and image linking, and the "Tables" section lists all three new accessibility attributes. All other sections are carried through unchanged.

Documentation Draft

Block Editor v3

Block Editor v3 is a complete rebuild of the dotCMS Block Editor field's rich-text editing experience on an updated technical foundation. The authoring interface is faster and significantly redesigned; the underlying data format and field configuration are unchanged.

This document covers what is new or different in Block Editor v3 — UX changes for content authors, the rollout and feature flag for administrators, and technical migration notes for developers. It does not duplicate the enduring reference material that is unchanged from 1.x: block types, field variables, VTL rendering, headless rendering, remote extension setup, embedded contentlet behavior, and WYSIWYG conversion all remain as documented in the Block Editor reference. Readers should keep that reference alongside this document.

Block Editor v3 is enabled by default as of the 26.07.13-01 release. It is controlled by a feature flag:

DOT_FEATURE_FLAG_NEW_BLOCK_EDITOR

If you need to roll back to the legacy editor on an instance — for example while validating a customization against the new editor — explicitly set this configuration property to false through any of the available methods, including the Admin Panel.

No system restart or content migration is necessary in either direction. Content saved with the new editor continues to load correctly in the legacy editor, and vice versa, because the JSON storage format is identical.

What's New {#New}

Toolbar {#Toolbar}

Block Editor v3 Toolbar.

The first and most striking thing you'll notice is the menu: The bubble menu that previously floated over your text selection is gone. A persistent toolbar now sits at the top of the field and adapts its controls to whatever block or selection you're working in. Heading levels now include H1 through H6 (previously H1–H3 were available in the picker).

Slash Command Menu {#SlashMenu}

Block Editor v3 block selector.

Type / anywhere in the editor to open an inline insertion menu at your cursor. You can insert headings, paragraphs, lists, blockquotes, code blocks, tables, images, videos, horizontal dividers, or embedded content types — the same block types described in the Block Editor reference. The menu filters as you type; spaces are supported in the search. It is fully keyboard-navigable.

Tables {#Tables}

Block Editor v3 table controls.

Tables received new editing tools: When your cursor is inside a table, controls appear so you can insert or delete rows and columns, merge or split cells, toggle headers, and add a caption for accessibility, making restructuring tables a trivial process.

Tables are also more accessible out of the box:

  • Header cells automatically receive a scope="col" (first row) or scope="row" (first column) attribute, which you can override if needed.
  • The table-properties control lets you set an aria-label and aria-labelledby on the table, alongside its caption.

While inside any table cell, the new persistent toolbar's controls will bind to the cell containing the cursor, allowing the use of the full suite of controls in an intuitive manner; bullets, code blocks, etc., are as easy to add to cells as the rest of the document.

Drag-And-Drop Handle {#DragHandle}

Block Editor v3 drag handle.

Hover over any block to reveal a drag handle on its left edge. The behavior is the same as before — drag a block to reposition it in the document — but refined and optimized. A minor change.

Improved Media Handling {#Media}

Block Editor v3 image selector.

Images can be added by dragging a file into the editor or opening the asset picker. Videos can be added the same way, and also by pasting a URL directly into the editor; pasting an image URL produces a link rather than an embedded image, so use drag-and-drop or the picker for images. The picker supports filtering by folder, site, file type, and search query. While a file uploads, a placeholder appears so you can continue writing.

Block Editor v3 image property editor.

Once placed, you can edit the caption, alt text, alignment, and text-wrap directly in a small panel beside the image — no separate dialog required.

Code Blocks {#Code}

Block Editor v3 code block.

Code blocks now include syntax highlighting and a language selector.

Inline Link Editing {#Links}

Block Editor v3 link editor.

Click any existing link and a small popover opens in place. You can update the URL, the link text, and the new-tab toggle without leaving your writing position.

When entering a URL, typing part of a page's title or path searches your internal dotCMS pages and shows a dropdown of matches, with title, path, and a thumbnail where available — pick a result instead of pasting a URL by hand. Typing or pasting an external http(s) address still works as plain text entry; the search simply doesn't trigger for those values.

You can also link an image: select an image block and click the toolbar's Link button to open an image-specific popover (URL and "open in new tab" only — no text field, since the image itself is the link). The image is preserved rather than replaced, and a trash-can action in the popover removes the link from an already-linked image.

Tab Indenting {#TabIndenting}

Block Editor v3 image selector.

Press Tab inside a heading, paragraph, or blockquote to indent it; Shift+Tab to outdent. Tab continues to nest list items inside lists and move between cells inside tables, as before.

Emoji Picker {#Emoji}

Block Editor v3 image selector.

Available from the toolbar. Type to filter, click to insert.

Fullscreen Editing {#Fullscreen}

Block Editor v3 fulscreen button.

The toolbar has a fullscreen button that expands the editor to fill your screen, to give greater focus without the rest of the admin interface around it. Click it again or press Escape to go back to the normal view.

Text Operations {#Text}

  • Spell-check: Right-clicking inside the editor now opens your browser's native spell-check menu.
  • Markdown Interoperability: The "Paste from Markdown" and "Copy as Markdown" actions, which previously appeared in the right-click menu, have moved to the toolbar.

AI {#AI}

Two AI tools are available when dotAI is configured on your instance:

  • Ask AI: Generate copy from a text prompt and drop it into the document.
  • AI Image: Describe an image, get a generated visual, and insert it inline.

Both appear in the toolbar and slash menu only when dotAI is active. If you do not see them, contact your administrator to confirm whether dotAI is configured.

Existing Content {#ExistingContent}

Your existing content is safe. Every page, blog post, banner, and content item will load and render exactly as before. No migration, no re-publishing, and no URL or layout changes are required.

Block Editor v3 is fully backward compatible at the data layer.

Technical Details {#Technical}

The editor has moved from TipTap v2 to TipTap v3, delivered as a new Angular standalone library (@dotcms/new-block-editor). The data model is unchanged; only the UX layer and maintenance surface have changed.

github-actions[bot] avatar Nov 23 '26 17:11 github-actions[bot]