@umbraco-cms/backoffice
    Preparing search index...

    Function textblockTypeInputRule

    • Build an input rule that changes the type of a textblock when the matched text is typed into it. When using a regular expresion you’ll probably want the regexp to start with ^, so that the pattern can only occur at the start of a textblock.

      Parameters

      • config: {
            find: InputRuleFinder;
            getAttributes?:
                | null
                | false
                | Record<string, any>
                | ((match: ExtendedRegExpMatchArray) => Record<string, any>);
            type: NodeType;
            undoable?: boolean;
        }

      Returns InputRule