friendsoftypo3 / visual-editor
TYPO3 CMS Visual Editor - Brings a modern WYSIWYG editing experience to TYPO3 CMS.
Package info
github.com/FriendsOfTYPO3/visual_editor
Language:JavaScript
Type:typo3-cms-extension
pkg:composer/friendsoftypo3/visual-editor
Requires
- php: ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0
- typo3/cms-backend: ^13.4.22 || ^14.3.0
- typo3/cms-core: ^13.4.22 || ^14.3.0
- typo3/cms-extbase: ^13.4.22 || ^14.3.0
- typo3/cms-fluid: ^13.4.22 || ^14.3.0
- typo3/cms-frontend: ^13.4.22 || ^14.3.0
- typo3/cms-rte-ckeditor: ^13.4.22 || ^14.3.0
Requires (Dev)
- b13/container: ^3.2.3
- phpunit/phpunit: ^11.5.55
- pluswerk/grumphp-config: ^10.2.7 || ^11.0.8
- saschaegerer/phpstan-typo3: ^2.1.1 || ^3.0.1
- ssch/typo3-rector: ^3.14.1
- typo3/cms-install: ^13.4.28 || ^14.3.3
- typo3/cms-workspaces: ^13.4.28 || ^14.3.3
- typo3/testing-framework: ^9.5.0
- typo3fluid/fluid: ^4.6.1 || ^5.3.1
Suggests
- wapplersystems/multisite-belogin: You should install this extension, if you have multiple domains in your TYPO3 installation.
Provides
None
Conflicts
None
Replaces
None
- dev-main
- 1.12.0
- 1.11.1
- 1.11.0
- 1.10.4
- 1.10.3
- 1.10.2
- 1.10.1
- 1.10.0
- 1.9.1
- 1.9.0
- 1.8.0
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.0
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.0
- dev-bugfix/ckeditor-csp-hashes
- dev-feature/auto-combine-sys_history-entries-on-save
- dev-feature/frame-covers-element
- dev-feature/css-variable-api
- dev-fix/preserve-editable-text-case
- dev-wip/changes-modal
- dev-wip/render-relations-viewHelper
- dev-wip/f-render-typolink
- dev-wip/php-api
- dev-docs/add-visual-editor-documentation
- dev-wip/idiomorph
This package is auto-updated.
Last update: 2026-12-03 10:35:45 UTC
README
Next Generation Frontend Editing for TYPO3 CMS.
This extension provides visual editing features for content elements in TYPO3 CMS.
Features
- โ๏ธ Inline editing it looks perfectly like the frontend output (WYSIWYG)
- ๐งฒ Drag-and-drop repositioning of content elements (โ adding and ๐๏ธ deleting elements)
- โก Real-time preview of changes without page reloads
- ๐ User-friendly interface for non-technical editors
- โฟ Accessibility-aware editing controls for TYPO3 editors
Editing.Made.Visual.mp4
Compatibility
| Visual Editor | TYPO3 | PHP | Support / Development |
|---|---|---|---|
| 1.x | 13 - 14 | 8.2 - 8.5 | features, bugfixes, security updates |
Installation
- ๐ฆ
composer require friendsoftypo3/visual-editor(or install via ๐งฉ Extension Manager) - ๐งฑ Add
f:render.text,f:mark.contentAreato your templates (see below) - ๐งน Clear caches
- ๐ Start editing!
Useful links:
- Try the Demo Try the editor without any setup.
- ddev local demo setup test it locally
- fluid_styled_content addon automatic text editing for fluid_styled_content
- Example Commit How to integrate
f:render.text - Example Commit How to integrate
f:render.contentArea - Slack Channel ask questions
For editors
- ๐ Opening editable links: when editable text is inside a link, left click starts editing the text. To open the link instead, use the middle mouse button or Ctrl/Cmd + click.
- ๐พ Saving changes: use the save button. Autosave is available only when enabled, and the UI says to switch to a workspace if autosave is disabled.
- ๐ฆ Finding editable areas: use Spotlight to highlight editable text, rich text, images, and content elements.
- ๐ป Showing empty fields: use "show empty" when editable but currently empty fields are hard to see.
- ๐ Multi language edits: available with TYPO3 v14. Use the "Multi language" view to compare translations side by side, edit visible fields in each preview, and save pending changes together.
- โ๏ธ Moving content: drag content elements by their handle. Hold Ctrl while dropping to copy instead of moving.
- โ๏ธ Editing special text characters: type
­for a soft hyphen and for a non-breaking space. Entity-like text that starts with&, such as , is shown with&while editing so it stays literal text.
Template Integration
visual_editor uses ViewHelpers in Fluid templates to mark the areas that should be editable.
In TYPO3 v14, the extension uses existing ViewHelpers in TYPO3 Core to hook into the rendering.
This means that the extension works out-of-the-box for the new theme "Camino" and also for
the default fluid_styled_content templates.
If you want to add visual editing to your own templates, you need to add some ViewHelpers to all locations that should be editable:
Text/RichText Fields
Replace the output of your texts with the f:render.text ViewHelper.
- record is already a Record object:
before: <f:if condition="{record.header}"> <h1>{record.header}</h1> </f:if> after: <f:variable name="header" value="{record -> f:render.text(field: 'header')}" /> <f:if condition="{header}"> <h1>{header}</h1> </f:if>
before: <h1>{record.header}</h1> after: <h1>{record -> f:render.text(field: 'header')}</h1>
If you do not have a Record object yet, you can create one with the record-transformation DataProcessors:
// add record dataProcessor for all content elements lib.contentElement.dataProcessing.1768551979 = record-transformation
Content Blocks
Content Blocks passes the record to the template as data. Use the database column name as field, not the identifier from config.yaml.
With prefixed fields (the Content Blocks default), they differ, e.g. myvendor_header instead of header, depending on prefixFields, prefixType and vendorPrefix:
before: <h2>{data.header}</h2> after: <h2>{data -> f:render.text(field: 'myvendor_header')}</h2>
The Visual Editor checks permissions for and saves to the TCA field with exactly this name.
If the table also has a column with the identifier's name, e.g. the core column tt_content.header, field: 'header' would save the edits to that column instead of the Content Blocks field.
Fields with useExistingField: true keep the name of the existing column.
Fields that only some record types have
In partials that are shared by several record types, set optional: true for fields that not every type has.
f:render.text then returns null instead of throwing an exception, also outside of edit mode:
<f:variable name="subline" value="{record -> f:render.text(field: 'subline', optional: true)}" /> <f:if condition="{subline}"> <p>{subline}</p> </f:if>
Editable text entities
For plain editable text fields, Visual Editor makes some otherwise hard-to-see characters explicit while the field is focused.
Soft hyphens are shown as ­, and non-breaking spaces are shown as .
Plain ampersands stay visible as &, but ampersands that start an entity-like sequence, such as ,  , or  , are shown as & while editing so the sequence stays literal text.
When the editor changes or leaves the field, these values are converted back before validation and storage.
<h1>{record -> f:render.text(field: 'header')}</h1>
Fluid components
When you use Fluid components, render the editable text outside the component and pass the rendered value into the component.
This keeps the component decoupled from records and TCA fields, and lets callers pass either a plain string or the result of f:render.text.
<my:component.card header="{record -> f:render.text(field: 'header')}" />
Inside the component, accept the argument as a string or stringable value:
<f:argument name="header" type="string|Stringable" />
Do not change the rendered text
In edit mode, f:render.text returns the editable element, not the plain text.
Do not pass the result through ViewHelpers that change or shorten markup, e.g. f:format.crop, f:format.stripTags or your own formatting ViewHelpers: they would break the editable element.
If you need such a variant for the frontend, render it only outside of edit mode:
<f:editMode> <f:then>{record -> f:render.text(field: 'teaser')}</f:then> <f:else>{record.teaser -> f:format.crop(maxCharacters: 120)}</f:else> </f:editMode>
Number Fields
Fields of TCA type number are rendered with the f:render.number ViewHelper.
It formats the number like f:format.number and accepts the same arguments (decimals, decimalSeparator, thousandsSeparator).
If decimals is not set, it defaults to 0 for the format integer and to 2 for the format decimal.
before: <span>{record.price -> f:format.number(thousandsSeparator: '.')}</span> after: <span>{record -> f:render.number(field: 'price', thousandsSeparator: '.')}</span>
In edit mode, the editor sees and types the raw value. The input is validated against the TCA configuration (format, range, required, nullable).
Clearing a nullable field stores NULL.
ContentArea
ViewHelper f:render.contentArea (v14)
This newly introduced ViewHelper (v14) is the recommended way to render content areas in the TYPO3 in general.
Short description what you need to change in your templates:
before: <f:cObject typoscriptObjectPath="lib.dynamicContent" data="{colPos: '3'}"/> after: <f:render.contentArea contentArea="{content.main}" />
content.main here is automatically filled if you use PAGEVIEW and a BackendLayout with a column with an Identifier named main.
More information in the Official Documentation.
If you can not use the
f:render.contentAreaViewHelper, you can also use thef:mark.contentAreaViewHelper.
ViewHelper f:mark.contentArea (v13)
Use
f:render.contentAreaif possible!
Add the f:mark.contentArea ViewHelper to the Fluid template that renders your content elements.
search for:
f:cObject(typoscript rendering):before: <f:cObject typoscriptObjectPath="lib.dynamicContent" data="{colPos: '3'}"/> after: <f:mark.contentArea colPos="3"> <f:cObject typoscriptObjectPath="lib.dynamicContent" data="{colPos: '3'}"/> </f:mark.contentArea>
each="{children_(EXT:container):before: <f:for each="{children_201}" as="element"> {element.renderedContent -> f:format.raw()} </f:for> after: <f:mark.contentArea colPos="201" txContainerParent="{record.uid}"> <f:for each="{children_201}" as="element"> {element.renderedContent -> f:format.raw()} </f:for> </f:mark.contentArea>
v:content.render(EXT:vhs):before: <v:content.render column="0"/> after: <f:mark.contentArea colPos="0"> <v:content.render column="0"/> </f:mark.contentArea>
flux:content.render(EXT:flux):before: <flux:content.render area="column0"/> after: <f:mark.contentArea colPos="{data.uid}00"> <flux:content.render area="column0"/> </f:mark.contentArea>
Images
In edit mode, images rendered with f:image from a file reference get a click target that opens the image field of the record (replace image, crop, alternative text).
Images rendered in another way, e.g. with your own <picture> ViewHelper or f:uri.image, are not editable in the frontend.
Edit mode in templates
f:editMode is a condition ViewHelper: then is rendered only in edit mode. Use it for markup, CSS or JavaScript that only the editing view needs:
<div class="content-main{f:editMode(then: ' edit-mode')}"> <f:editMode> <f:asset.css identifier="my-edit-mode" href="EXT:my_sitepackage/Resources/Public/Css/EditMode.css" /> </f:editMode>
Extension configuration
showHiddenRecordsOfTables
Comma separated list of tables whose hidden records are shown in edit mode, so editors can see and unhide them. Default: tt_content.
Hidden records of all other tables stay hidden in edit mode, like in the frontend, e.g. hidden images (sys_file_reference). If you make records of another table editable with the visual editor, e.g. news with stdWrap.wrapContentElementsWithVeWrapper, add the table:
// config/system/settings.php or additional.php $GLOBALS['TYPO3_CONF_VARS']['EXTENSIONS']['visual_editor']['showHiddenRecordsOfTables'] = 'tt_content,tx_news_domain_model_news';
pages is not supported: hidden pages follow the preview of the TYPO3 core.
In edit mode, hidden records of these tables are also returned by your own frontend queries with the default restrictions, e.g. in DataProcessors or Extbase repositories. If your code needs only the records that visitors see, e.g. to show a fallback when a page has no visible element of a type, check the hidden field explicitly.
PSR-14 events
ModifyNewContentElementWizardUrlParameterEvent
This event allows extensions to modify the URL parameters used to open the new content element wizard. It provides the current parameters, the route arguments used to render the frontend page, and the current request.
For example, a listener can pass a frontend route argument to the wizard:
<?php namespace Vendor\MyExtension\EventListener; use TYPO3\CMS\Core\Attribute\AsEventListener; use TYPO3\CMS\VisualEditor\Events\ModifyNewContentElementWizardUrlParameterEvent; #[AsEventListener] final class ModifyNewContentElementWizardUrlParameterEventListener { public function __invoke(ModifyNewContentElementWizardUrlParameterEvent $event): void { $context = $event->getUsedArguments()['tx_myextension']['context'] ?? null; if ($context === null) { return; } $parameters = $event->getParameters(); $parameters['myExtensionContext'] = $context; $event->setParameters($parameters); } }
The additional parameter is then available from the request of TYPO3 Core's ModifyNewContentElementWizardItemsEvent, where it can be used, for example, to adjust the defaultValues of wizard items.
Known limitations
- Wrapped content elements rendered with
f:render.contentAreaandrecordAsare not currently supported for drag-and-drop. In this setup, drag handles may disappear. Move the wrapping markup into the content element rendering instead of wrapping elements at thecontentArealevel. <ve-content-element>replaces the single root element of each content element and takes over its attributes, including its classes. If these classes create a stacking context (e.g.isolation: isolate,z-indexwithposition,transform), the action bar and the drop zones stay inside it: they can end up behind a sticky header or the next content element, and dropping may only work after the last element. Wrap the root element in an additional element in edit mode:<f:editMode><div></f:editMode> <section class="my-element">โฆ</section> <f:editMode></div></f:editMode>
- Editable text inside
<summary>(e.g. an accordion with<details>): a click into the text, Space and Enter toggle the<details>element while editing. Render the<details>open in edit mode and prevent the default action of these events inside editable fields with an edit mode only script:const isEditableInSummary = (event) => { const path = event.composedPath(); return path.some((node) => node instanceof Element && node.tagName.startsWith('VE-EDITABLE-')) && path.some((node) => node instanceof HTMLElement && node.tagName === 'SUMMARY'); }; document.addEventListener('click', (event) => isEditableInSummary(event) && event.preventDefault(), true); document.addEventListener('keyup', (event) => event.key === ' ' && isEditableInSummary(event) && event.preventDefault(), true); document.addEventListener('keydown', (event) => event.key === 'Enter' && isEditableInSummary(event) && event.preventDefault(), true);
- Headless and non-Fluid setups are not first-class integration targets. Visual Editor relies heavily on Fluid ViewHelpers that wrap output in web components and load the required JavaScript, so robust headless integration would need a public API.
- Cross-domain headless setups are further limited because backend-module frame messaging does not work reliably across domains due to TYPO3 core limitations. General multi-domain setups are effectively excluded for this approach.
Multi Site/Domain Setup
You need to be Logged in to every Domain separately to use the Visual Editor.
OR you can use EXT:multisite_belogin it automatically logs you in to all sites/domains.
Rich Text Styling
Visual Editor uses your regular frontend CSS for the editing view. CSS that is configured only in the TYPO3 RTE configuration (contentsCss) is not applied there.
If your project defines custom rich-text styles, add the relevant rules to your frontend CSS so the page output and the editor share the same styling. Projects with custom lib.parseFunc_RTE setups may also need matching frontend rules.
Change the look of the edit cues
The edit cues are the rings, frames, tints and buttons that the Visual Editor shows on the page in edit mode. They use CSS custom properties. Set these properties in the CSS of your site to change the look of the edit cues.
| Custom property | Default | From the backend theme | Changes |
|---|---|---|---|
--ve-accent |
#5432fe |
primary color | the rings, the frame of a content element, the focus and the tint of a field |
--ve-halo |
#fff |
โ | the light line under the dashes and around a focused field |
--ve-success |
#3b9e3b |
success color | the tint and the bar on the left of a changed field |
--ve-button-bg |
#f7f7f8 |
default button | the background of the action bar of a content element |
--ve-button-color |
#181718 |
default button | the text and the icons of the action bar |
--ve-button-hover-bg |
#e5e4e7 |
default button | the background of a button of the action bar under the mouse pointer |
--ve-button-radius |
3px |
small button | the corners of the action bar and its buttons |
--ve-ring-width |
2px |
โ | the width of the hover ring of a field and of an image |
--ve-changed-strength |
10% |
โ | how strong the tint of a changed field is on a light page |
--ve-changed-dark-strength |
20% |
โ | how strong the tint of a changed field is on a dark page |
--ve-hidden-background |
gray stripes | โ | the overlay of a hidden content element |
--ve-hidden-filter |
saturate(0%) |
โ | the filter for the page under the overlay of a hidden content element |
Use a color value for the colors, a length with a unit (also 0px) for --ve-button-radius and --ve-ring-width, and a
percentage for the strengths. --ve-hidden-background takes a value of the CSS property background, and
--ve-hidden-filter a value of backdrop-filter. Use none to remove them.
The value of a custom property comes from the first of these sources that sets it:
- The CSS of your site.
- The backend theme: in the backend, the Visual Editor copies the colors and the button radius of the TYPO3 backend into the page. Thus the edit cues follow the backend theme, also in dark mode.
- The default of the Visual Editor.
The defaults and the colors of the backend theme are in the CSS cascade layers visual-editor.defaults and
visual-editor.backend-theme. A rule of your site that is not in a cascade layer always wins over them. The order of
the style sheets in the page and the specificity of your selector do not matter.
Set the properties on :root to change them for the full page:
:root { --ve-accent: #c8102e; --ve-button-radius: 0px; }
Or set them on an element to change them for a part of the page only, for example for a section with a dark background:
.section--dark { --ve-accent: #ffd54f; --ve-changed-dark-strength: 35%; }
The overlay of a hidden content element goes away while the mouse pointer is on the element or while the focus is visible in it, so the editor can read the content. The badge with the crossed-out eye goes away when the mouse pointer comes near it. On a site with black and white images, for example, a light tint can be better than the gray stripes:
:root { --ve-hidden-background: rgba(255, 255, 255, 0.5); --ve-hidden-filter: none; }
The edit cues are only on the page in edit mode. The custom properties do not change anything for the visitors of your site, so you can put them into the normal CSS of your site.
Custom properties that start with --_ve- are internal. Do not set them: they can change in every version.
Content Security Policy
Outside of edit mode, the Visual Editor does not change the Content Security Policy of the frontend. In edit mode, it adjusts the policy for CKEditor:
style-src(andstyle-src-attr, if present) allow'self'and'unsafe-inline'instead of nonces.- If the site uses hashes (TYPO3 v14), nonces are used instead.
Requesting a page with editMode but without a backend login returns a hint page with status 401 and a link to the backend login.
It is thrown as an ImmediateResponseException, so middlewares that wrap the middleware of the Visual Editor do not get a response: if your own middleware adds headers to every frontend response, e.g. security headers, catch ImmediateResponseException there and add the headers to its response.
Accessibility
Visual Editor is designed with WCAG 2.2 AA as a goal, but this is not a full compliance claim for every TYPO3 project.
The editor interface includes accessible labels, keyboard-focusable controls, validation announcements, and semantic roles. It has been tested with axe DevTools and NVDA.
Final accessibility depends on the project templates, CSS, semantic HTML, and editor-authored content. Drag-and-drop workflows are pointer-oriented, so projects should verify alternative workflows for their editor needs. Project-level accessibility should be checked in the integrated TYPO3 site.
License and Authors: License type, contributors, contact information
This extension is licensed under the GPL-2.0-or-later license.
with โฅ๏ธ from 
If something did not work ๐ฎ
or you appreciate this Extension ๐ฅฐ let us know.
We are always looking for great people to join our team!
https://www.andersundsehr.com/karriere/