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

add track change plugin through service

parent d5448d4c
No related branches found
No related tags found
1 merge request!160add track change plugin through service
import { trackChangesMarks, trackChangesNodes } from 'wax-prosemirror-schema'; import { trackChangesMarks, trackChangesNodes } from 'wax-prosemirror-schema';
import { TrackChangePlugin } from 'wax-prosemirror-plugins';
import Service from '../Service'; import Service from '../Service';
import TrackChangeServices from './index'; import TrackChangeServices from './index';
const PLUGIN_KEY = 'trackChngePlugin';
class TrackChangeService extends Service { class TrackChangeService extends Service {
boot() {} boot() {
this.app.PmPlugins.add(PLUGIN_KEY, TrackChangePlugin(PLUGIN_KEY));
}
register() { register() {
const createMark = this.container.get('CreateMark'); const createMark = this.container.get('CreateMark');
......
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