commands({ type, schema }) {
        return attrs => (state, dispatch) => {
            return dispatch(state.tr.replaceSelectionWith(type.create(attrs)));
        };
    }
// `schema` is a collection of all registered nodes and marks
`schema` is a collection of all registered nodes and marks
` schema ` is a collection of all registered nodes and marks
commands({ type, schema }) {
        return attrs => (state, dispatch) => {
            return dispatch(state.tr.replaceSelectionWith(type.create(attrs)));
        };
    }
commands ( { type , schema } ) { return attrs => ( state , dispatch ) => { return dispatch ( state . tr . replaceSelectionWith ( type . create ( attrs ) ) ) ; } ; }
`schema` is a collection of all registered nodes and marks
` schema ` is a collection of all registered nodes and marks