Skip to main content

register_editor

Function register_editor 

Source
pub fn register_editor(script_url: impl Into<String>)
Expand description

Sets the URL of the script that turns wysiwyg textareas into an editor. The panel loads it with <script src="..." defer> on each form with a wysiwyg field, from the next request on. Registering again replaces the URL. With no script registered, a wysiwyg field is a plain textarea.