backend.richeditor.getTypeInfo

Register additional "page link types" to the RichEditor FormWidget

Example usage:

Event::listen('backend.richeditor.getTypeInfo', function ($type) { if ($type === 'my-identifier') { return [ 'https://example.com/page1' => 'Page 1', 'https://example.com/parent-page' => [ 'title' => 'Parent Page', 'links' => [ 'https://example.com/child-page' => 'Child Page', ], ], ]; } });

Usage

Triggers

Class or file Line
Backend\FormWidgets\RichEditor 243
Copyright © 2024 Winter CMS