Skip to content
Snippets Groups Projects
Commit e4bff9d7 authored by chris's avatar chris
Browse files

remove comments

parent 1a23fb4f
No related branches found
No related tags found
1 merge request!430Hhmi issues
/* eslint-disable no-param-reassign */
import { each } from 'lodash';
// const alterNotesSchema = schema => {
// const notes = [];
// each(schema.nodes, node => {
// if (node.groups.includes('notes')) notes.push(node);
// });
// if (notes.length > 0) {
// notes.forEach(note => {
// schema.nodes[note.name].spec.toDOM = node => {
// if (node) return [note.name, node.attrs, 0];
// return true;
// };
// });
// }
// };
// const revertNotesSchema = schema => {
// const notes = [];
// each(schema.nodes, node => {
// if (node.groups.includes('notes')) notes.push(node);
// });
// if (notes.length > 0) {
// notes.forEach(note => {
// schema.nodes[note.name].spec.toDOM = node => {
// if (node) return [note.name, node.attrs];
// return true;
// };
// });
// }
// };
const alterNotesSchema = schema => {
const notes = [];
each(schema.nodes, node => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment