asma-ui-richeditor 0.6.3 → 0.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -32445,10 +32445,12 @@ var oC = Rl.create({
|
|
|
32445
32445
|
O
|
|
32446
32446
|
]), p((() => {
|
|
32447
32447
|
let e = O?.view.dom;
|
|
32448
|
-
e && (s ? (e.removeAttribute("role"), e.removeAttribute("tabindex"), e.removeAttribute("aria-label")) : (e.setAttribute("role", "textbox"), e.setAttribute("aria-label", ke)));
|
|
32448
|
+
e && (s ? (e.removeAttribute("role"), e.removeAttribute("tabindex"), e.removeAttribute("aria-label"), e.removeAttribute("aria-disabled")) : (e.setAttribute("role", "textbox"), e.setAttribute("aria-label", ke), o && !w.editable ? e.setAttribute("aria-disabled", "true") : e.removeAttribute("aria-disabled")));
|
|
32449
32449
|
}), [
|
|
32450
32450
|
O,
|
|
32451
32451
|
s,
|
|
32452
|
+
o,
|
|
32453
|
+
w.editable,
|
|
32452
32454
|
ke
|
|
32453
32455
|
]), p((() => {
|
|
32454
32456
|
T.current !== void 0 && O?.commands.setTextSelection(T.current);
|
|
@@ -32495,7 +32497,7 @@ var oC = Rl.create({
|
|
|
32495
32497
|
"data-test": e,
|
|
32496
32498
|
"data-testid": e,
|
|
32497
32499
|
id: n,
|
|
32498
|
-
className: he(!fe && "core-ui-rte", !de && !o && !s && !Ie && "displace-text", !fe && !o && !s && "edit-mode", a, Ie && "displace-text"),
|
|
32500
|
+
className: he(!fe && "core-ui-rte", !de && !o && !s && !Ie && "displace-text", !fe && !o && !s && "edit-mode", o && !s && !w.editable && "cursor-not-allowed", a, Ie && "displace-text"),
|
|
32499
32501
|
editor: O,
|
|
32500
32502
|
onClick: () => O?.chain().focus().run(),
|
|
32501
32503
|
style: { "--max-scrollable-height": `${se || 100}px` }
|