Feature: #107081 - Add options to predefine link target and class in link browser
See forge#107081
Description
The link browser now supports preconfiguring link target and class attributes.
This allows administrators to set global defaults for all link types or specific
defaults per handler type, reducing manual selection effort for editors.
Configuration can be set via Page TSconfig:
TCEMAIN.linkHandler.[handlerKey].(target|cssClass).default = _blank
Where handler keys correspond to the link handler types that support these attributes:
page- for page linksfile- for file linksfolder- for folder linksurl- for external URLstelephone- for telephone linksemail- for email links
Global configuration (applies to all link types):
TCEMAIN.linkHandler.properties{
target.default = _self
cssClass.default = my-link-class
}
Handler-specific configuration (overrides global settings):
TCEMAIN.linkHandler{
url.target.default = _blank
page.target.default = _self
file.cssClass.default = file-link
}
Hint
The default target attributes of links added via the RTE are configured
separately through Page TSconfig options such as:
RTE.buttons.link{
properties.target.default = _blank
page.properties.target.default = _blank
}
For details, see buttons.link.[type].properties.target.default.
Impact
This feature improves editor workflows by providing meaningful default values for link attributes while preserving full flexibility for customization. The hierarchical configuration system allows both global defaults and handler-specific overrides, making link creation faster and more consistent.