From a44dad954adcfe984463bd7848940e586da05828 Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Thu, 3 Oct 2024 23:19:31 +0200 Subject: [PATCH] Revert "Integrate with `ElementInternals`" --- README.md | 57 ----------- src/test/system/custom_element_test.js | 96 +------------------ .../fixtures/editor_with_labels.js | 8 +- .../fixtures/editors_with_forms.js | 5 +- src/trix/elements/trix_editor_element.js | 76 ++++++++++----- 5 files changed, 59 insertions(+), 183 deletions(-) diff --git a/README.md b/README.md index b21d680d3..2645b79cd 100644 --- a/README.md +++ b/README.md @@ -148,63 +148,6 @@ To populate a `` with stored content, include that content in the a Always use an associated input element to safely populate an editor. Trix won’t load any HTML content inside a `` tag. -## Disabling the Editor - -To disable the ``, render it with the `[disabled]` attribute: - -```html - -``` - -Disabled editors are not editable, cannot receive focus, and their values will -be ignored when their related `
` element is submitted. - -To change whether or not an editor is disabled, either toggle the `[disabled]` -attribute or assign a boolean to the `.disabled` property: - -```html - - - -``` - -When disabled, the editor will match the [:disabled CSS -pseudo-class][:disabled]. - -[:disabled]: https://developer.mozilla.org/en-US/docs/Web/CSS/:disabled - -## Providing an Accessible Name - -Like other form controls, `` elements should have an accessible name. The `` element integrates with `