fix: FindAndReplace does not update to reflect changing between readOnly/editable
This commit is contained in:
@@ -7,7 +7,7 @@ import { Editor } from "../../../app/editor";
|
||||
|
||||
export type CommandFactory = (attrs?: Record<string, Primitive>) => Command;
|
||||
|
||||
export type WidgetProps = { rtl: boolean };
|
||||
export type WidgetProps = { rtl: boolean; readOnly: boolean | undefined };
|
||||
|
||||
export default class Extension {
|
||||
options: any;
|
||||
|
||||
@@ -44,7 +44,7 @@ export default class ExtensionManager {
|
||||
|
||||
get widgets() {
|
||||
return this.extensions
|
||||
.filter((extension) => extension.widget({ rtl: false }))
|
||||
.filter((extension) => extension.widget({ rtl: false, readOnly: false }))
|
||||
.reduce(
|
||||
(nodes, node: Node) => ({
|
||||
...nodes,
|
||||
|
||||
Reference in New Issue
Block a user