Files
front-ui-registry/.agent/consumer-references/editor-html-compatibility.md

519 B

KriEditor HTML Compatibility

  • enableImageMap opt-in preserves map, nested area, and img.usemap HTML in WYSIWYG mode; consumers remain responsible for sanitizing URLs and attributes according to their server policy.
  • Use htmlSanitizer when a consumer must apply a stricter HTML policy than the editor's default DOMPurify profile.
  • Use getWysiwygCompatibility to keep lossy HTML in HTML mode. The callback must return compatible: false when WYSIWYG parsing would remove or materially rewrite content.