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

fix schema

parent 11ada676
No related branches found
No related tags found
1 merge request!344fix schema
Showing
with 1 addition and 12 deletions
...@@ -15,7 +15,6 @@ class CodeBlockTool extends Tools { ...@@ -15,7 +15,6 @@ class CodeBlockTool extends Tools {
} }
select = (state, activeViewId, activeView) => { select = (state, activeViewId, activeView) => {
if (!activeView) return false;
const { disallowedTools } = activeView.props; const { disallowedTools } = activeView.props;
if (disallowedTools.includes('codeBlock')) return false; if (disallowedTools.includes('codeBlock')) return false;
return true; return true;
......
...@@ -19,7 +19,6 @@ class FillTheGapQuestion extends Tools { ...@@ -19,7 +19,6 @@ class FillTheGapQuestion extends Tools {
} }
select = (state, activeViewId, activeView) => { select = (state, activeViewId, activeView) => {
if (!activeView) return false;
const { disallowedTools } = activeView.props; const { disallowedTools } = activeView.props;
let status = true; let status = true;
const { from, to } = state.selection; const { from, to } = state.selection;
......
...@@ -10,7 +10,7 @@ const fillTheGapNode = { ...@@ -10,7 +10,7 @@ const fillTheGapNode = {
}, },
parseDOM: [ parseDOM: [
{ {
tag: 'span', tag: 'span.fill-the-gap',
getAttrs(dom) { getAttrs(dom) {
return { return {
id: dom.getAttribute('id'), id: dom.getAttribute('id'),
......
...@@ -20,7 +20,6 @@ class Image extends Tools { ...@@ -20,7 +20,6 @@ class Image extends Tools {
} }
select = activeView => { select = activeView => {
if (!activeView) return false;
const { const {
selection: { from }, selection: { from },
} = activeView.state; } = activeView.state;
......
...@@ -25,7 +25,6 @@ class BulletList extends Tools { ...@@ -25,7 +25,6 @@ class BulletList extends Tools {
} }
select = (state, activeViewId, activeView) => { select = (state, activeViewId, activeView) => {
if (!activeView) return false;
const { const {
selection: { from }, selection: { from },
} = state; } = state;
......
...@@ -10,7 +10,6 @@ class Lift extends Tools { ...@@ -10,7 +10,6 @@ class Lift extends Tools {
name = 'Lift'; name = 'Lift';
select = (state, activeViewId, activeView) => { select = (state, activeViewId, activeView) => {
if (!activeView) return false;
const { disallowedTools } = activeView.props; const { disallowedTools } = activeView.props;
if (disallowedTools.includes('lift')) return false; if (disallowedTools.includes('lift')) return false;
return lift(state); return lift(state);
......
...@@ -23,8 +23,6 @@ class OrderedList extends Tools { ...@@ -23,8 +23,6 @@ class OrderedList extends Tools {
} }
select = (state, activeViewId, activeView) => { select = (state, activeViewId, activeView) => {
if (!activeView) return false;
const { const {
selection: { from }, selection: { from },
} = state; } = state;
......
...@@ -66,7 +66,6 @@ class MultipleChoiceQuestion extends Tools { ...@@ -66,7 +66,6 @@ class MultipleChoiceQuestion extends Tools {
} }
select = (state, activeView) => { select = (state, activeView) => {
if (!activeView) return false;
const { disallowedTools } = activeView.props; const { disallowedTools } = activeView.props;
if (disallowedTools.includes('MultipleChoice')) return false; if (disallowedTools.includes('MultipleChoice')) return false;
let status = true; let status = true;
......
...@@ -2,8 +2,6 @@ import Service from '../Service'; ...@@ -2,8 +2,6 @@ import Service from '../Service';
import OverlayComponent from './OverlayComponent'; import OverlayComponent from './OverlayComponent';
export default class OverlayService extends Service { export default class OverlayService extends Service {
boot() {}
register() { register() {
this.container.bind('CreateOverlay').toFactory(context => { this.container.bind('CreateOverlay').toFactory(context => {
return (Component, componentProps, options) => { return (Component, componentProps, options) => {
......
...@@ -20,7 +20,6 @@ class Table extends Tools { ...@@ -20,7 +20,6 @@ class Table extends Tools {
} }
select = activeView => { select = activeView => {
if (!activeView) return false;
const { const {
selection: { from }, selection: { from },
} = activeView.state; } = activeView.state;
......
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