How to use the roosterjs-editor-types.Indentation.Decrease function in roosterjs-editor-types

To help you get started, we’ve selected a few roosterjs-editor-types examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / roosterjs / sample / scripts / initFormatBar.ts View on Github external
document.getElementById('outdentButton').addEventListener('click', function() {
        setIndentation(getCurrentEditor(), Indentation.Decrease);
    });
github microsoft / roosterjs-react / packages / roosterjs-react-command-bar / lib / utils / OutOfBoxCommandBarButtons.tsx View on Github external
        handleChange: (editor: Editor, props: RoosterCommandBarProps) => (props.disableListWorkaround ? setNonCompatIndentation : setIndentation)(editor, Indentation.Decrease)
    },
github microsoft / roosterjs / packages / roosterjs-editor-plugins / lib / ContentEdit / features / listFeatures.ts View on Github external
handleEvent: (event, editor) => {
        setIndentation(editor, Indentation.Decrease);
        event.rawEvent.preventDefault();
    },
};