Skip to content

Interface: ValidateOptions ​

Options for validate().

Properties ​

PropertyTypeDescription
extensionsreadonly Extension[]The same extensions the editor uses. Pass one shared array; its schema is cached.
limits?ValidateLimitsSize limits. Defaults are listed on ValidateLimits.
mode?"strip" | "strict"'strip' (default) removes what is invalid and reports it in removed. 'strict' rejects the whole document if anything would be removed. Limit violations are always rejected.
urls?{ protocols?: readonly string[]; }Allowed protocols for every href/src attribute. Default: http, https, mailto, tel.
urls.protocols?readonly string[]Allowed URL protocols, without the colon.