src/serialize/state.js
/**
     * update some nodes name due to serializer requiring on it
     */
update some nodes name due to serializer requiring on it
update some nodes name due to serializer requiring on it
withSerializableSchema(schema, render) {
        const { hardBreak } = schema.nodes;
        if(hardBreak) {
            hardBreak.name = 'hard_break';
            this.nodes.hard_break = this.nodes.hardBreak;
        }
        render();
        if(hardBreak) {
            hardBreak.name = 'hardBreak';
        }
    }
withSerializableSchema ( schema , render ) { const { hardBreak } = schema . nodes ; if ( hardBreak ) { hardBreak . name = 'hard_break' ; this . nodes . hard_break = this . nodes . hardBreak ; } render ( ) ; if ( hardBreak ) { hardBreak . name = 'hardBreak' ; } }
update some nodes name due to serializer requiring on it
update some nodes name due to serializer requiring on it