CKEditor5.Form (ckeditor5 v0.2.0)

View Source

Common helper functions for CKEditor5 form components.

Summary

Functions

Assigns form fields if the form and field attributes are provided. This function checks if the form is present and if the field is an atom. It then retrieves the input name and value from the form and assigns them to the assigns map.

Defines form-related attributes that are commonly used in CKEditor5 components. This includes name, form, field, value, and required attributes for form integration.

Functions

assign_form_fields(assigns)

Assigns form fields if the form and field attributes are provided. This function checks if the form is present and if the field is an atom. It then retrieves the input name and value from the form and assigns them to the assigns map.

form_attrs()

(macro)

Defines form-related attributes that are commonly used in CKEditor5 components. This includes name, form, field, value, and required attributes for form integration.