Issue Epic In Progress

#111576Visual Editor

Matthias Vogel 11/25/26, 09:47 updated 11/25/26, 13:23

Description

Goal

With the Visual Editor, a backend user edits content directly in the page. The backend shows the page in a frame, with the templates, the CSS and the JavaScript of the site. In this frame the backend user changes text and rich text, moves, adds and deletes content elements, and saves the changes. The save uses DataHandler, so permissions, workspaces and languages apply as in the other backend modules.

Visual editing does not depend on one theme. It builds on TCA, Fluid, FormEngine and DataHandler. It works for the content types of the Core and for custom content types alike. An integrator writes no JavaScript to make a content element editable.

This Epic collects the changes that bring visual editing into the Core. The base is the extension friendsoftypo3/visual-editor for TYPO3 v13 and v14. The Core does not take over the extension in one step. Each building block is a Core change with its own issue. The target is TYPO3 v15.

This Epic shows the rough plan. The building blocks and their order can change during the work.

Problems

The extension shows that visual editing works with the structured content of TYPO3. Since TYPO3 v14.2, the Core supplies the ViewHelpers and events for it: f:render.text, f:render.contentArea, f:render.record and their PSR-14 events. Thus the theme Camino and Fluid Styled Content support the extension without changes.

These limits of the extension come from the Core. Only the Core can remove them:

  • The frame shows hidden pages and workspace versions only on site domains that get the backend login cookie. In a multi-site installation the backend user must log in on each domain. The Preview module and the workspace preview have the same limit.
  • When the site uses another host than the backend, the frame and the backend cannot exchange messages reliably.
  • The Core shows hidden records for all tables or for no table. To edit a hidden content element, the backend user must see it. Hidden related records, for example categories, must stay hidden.
  • A Content Security Policy that allows only nonces blocks the JavaScript modules of the frontend.
  • The configuration and the start of CKEditor are available only in FormEngine. Inline editing of rich text needs them in the frontend.
  • Fields that the page does not show, for example the type of a content element, need the record form. When the type changes, the record form saves the record before it shows the new fields. Thus the frame cannot show a change before the save. This save also skips the validation, so it can store a record in an invalid state.

Scope

The Epic has these building blocks. Blocks 2 to 6 also help without visual editing, for example in the Preview module, in the workspace preview and in the record form.

  1. Fluid ViewHelpers for editable output: ViewHelpers that know the record and the field, and events that let an extension change their output. Done in v14.2 and v14.3. f:render.text is also available in v13.4.
  2. Preview across site domains: the backend shows the site in a frame with a short-lived preview token instead of the backend login cookie. The frame loads the page from the domain of the site, so the JavaScript of the site works as for visitors.
  3. Preview page and frame: one preview page in the backend with a bar, the frame and a message channel between the frame and the backend. The Preview module and the workspace preview use the same page and frame, also for the compare mode and the device preview.
  4. Visibility of hidden records: the frame shows hidden content elements for editing. Other hidden records stay hidden.
  5. Frontend assets: JavaScript modules with a nonce. The configuration and the start of CKEditor outside FormEngine.
  6. Record form from unsaved values: the record form shows the record from the values in the browser and writes nothing to the database. Only the save of the backend user writes, after the validation.
  7. Live update of the frame: the frame shows the unsaved values of the record form before the save.
  8. Editing in the frame: inline editing of text and rich text fields, drag and drop, adding and deleting content elements, and languages side by side. Each action also works with the keyboard. The backend user can select and move every content element, and edit it in the record form, also when its template shows no editable field. The backend saves the changes with DataHandler.

Out of scope

  • Headless and non-Fluid setups. They need a public API for editable fields. This can be a later Epic.
  • A page builder. The content model of TYPO3 stays: records, TCA, backend layouts and content areas.
  • A replacement for the Page module or for FormEngine. Visual editing is one more way to edit content.
  • Editing by frontend users.
  • A second rich text editor. Inline editing uses CKEditor with the preset of the field.
  • New rules for the content types that a site allows. The Visual Editor uses the rules that the Core supplies, for example the allowed content types of a content area.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

Fix this issue

Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch

Commit message
[TASK] Visual Editor Resolves: #111576 Releases: main

Subtasks 18

History 41

Show 16 earlier messages Hide the earlier messages
  1. Matthias Vogel changed subtask #108726 11/25/26, 09:48

  2. Matthias Vogel changed subtask #108868 11/25/26, 09:48

  3. Matthias Vogel changed subtask #109808 11/25/26, 09:48

  4. Matthias Vogel changed subtask #111159 11/25/26, 09:48

  5. Matthias Vogel changed subtask #110647 11/25/26, 09:48

  6. Matthias Vogel changed subtask #109532 11/25/26, 09:48

  7. Matthias Vogel changed subtask #108935 11/25/26, 09:48

  8. Matthias Vogel changed subtask #108847 11/25/26, 09:48

  9. Matthias Vogel changed subtask #109261 11/25/26, 09:48

  10. Matthias Vogel changed subtask #110645 11/25/26, 09:48

  11. Matthias Vogel changed subtask #110652 11/25/26, 09:48

  12. Matthias Vogel changed subtask #110322 11/25/26, 09:48

  13. Matthias Vogel changed subtask #109814 11/25/26, 09:48

  14. Matthias Vogel changed subtask #108044 11/25/26, 09:48

  15. Matthias Vogel changed subtask #108056 11/25/26, 09:48

  16. Matthias Vogel changed Related to #110664 11/25/26, 09:48

  1. Matthias Vogel changed Related to #108804 11/25/26, 09:48

  2. Matthias Vogel changed Related to #110312 11/25/26, 09:48

  3. Matthias Vogel changed Related to #111571 11/25/26, 09:48

  4. Matthias Vogel changed Related to #111292 11/25/26, 09:48

  5. Matthias Vogel changed Related to #111079 11/25/26, 09:48

  6. Matthias Vogel changed Related to #111338 11/25/26, 09:48

  7. Matthias Vogel changed Related to #105570 11/25/26, 09:48

  8. Matthias Vogel changed Related to #97276 11/25/26, 09:48

  9. Matthias Vogel changed Related to #111554 11/25/26, 09:48

  10. Matthias Vogel changed Related to #96077 11/25/26, 09:48

  11. Matthias Vogel changed Related to #109721 11/25/26, 09:48

  12. Matthias Vogel changed Related to #107354 11/25/26, 09:48

  13. Matthias Vogel changed Related to #111558 11/25/26, 09:48

  14. Matthias Vogel changed Related to #110947 11/25/26, 09:48

  15. Matthias Vogel changed Related to #99384 11/25/26, 09:48

  16. Matthias Vogel changed Related to #111526 11/25/26, 09:48

  17. Matthias Vogel changed Related to #108473 11/25/26, 09:48

  18. Matthias Vogel changed Related to #110539 11/25/26, 09:48

  19. Matthias Vogel changed Related to #104081 11/25/26, 09:48

  20. Matthias Vogel changed Related to #109130 11/25/26, 09:48

  21. Matthias Vogel changed Related to #110307 11/25/26, 09:48

  22. Matthias Vogel changed status New In Progress 11/25/26, 10:00

  23. Matthias Vogel changed subtask #108804 11/25/26, 13:23

  24. Matthias Vogel changed subtask #111587 11/25/26, 13:23

  25. Matthias Vogel changed subtask #111573 11/25/26, 13:23