FundamentalCompatibilityConstraintValidator
class FundamentalCompatibilityConstraintValidator extends ConstraintValidator implements ContainerInjectionInterface (View source)
| internal |
Validates fundamental compatibility of CKEditor 5 with the given text format.
Fundamental requirements:
- No TYPE_MARKUP_LANGUAGE filters allowed.
- Fundamental CKEditor 5 plugins' HTML tags are allowed.
- The HTML restrictions of all TYPE_HTML_RESTRICTOR filters allow the configured CKEditor 5 plugins to work.
Traits
Common functionality for many CKEditor 5 validation constraints.
Some CKEditor 5 constraint validators need a Text Editor object.
Constants
| FUNDAMENTAL_CKEDITOR5_PLUGINS |
The fundamental CKEditor 5 plugins without which it cannot function. |
Properties
| protected CKEditor5PluginManagerInterface | $pluginManager | The CKEditor 5 plugin manager. |
from PluginManagerDependentValidatorTrait |
Methods
__construct(CKEditor5PluginManagerInterface $plugin_manager)
Constructs a CKEditor5ConstraintValidatorTrait object.
static
create(ContainerInterface $container)
{@inheritdoc}
validate($toolbar_item, Constraint $constraint)
{@inheritdoc}
Details
__construct(CKEditor5PluginManagerInterface $plugin_manager)
Constructs a CKEditor5ConstraintValidatorTrait object.
static
create(ContainerInterface $container)
{@inheritdoc}
validate($toolbar_item, Constraint $constraint)
{@inheritdoc}