Skip to content
Snippets Groups Projects
Commit d3d2ae7a authored by Christos's avatar Christos
Browse files

Merge branch 'replace-katex' into 'master'

fix schema

See merge request !344
parents 3ee5c6a1 98a1ceea
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 {
}
select = (state, activeViewId, activeView) => {
if (!activeView) return false;
const { disallowedTools } = activeView.props;
if (disallowedTools.includes('codeBlock')) return false;
return true;
......
......@@ -19,7 +19,6 @@ class FillTheGapQuestion extends Tools {
}
select = (state, activeViewId, activeView) => {
if (!activeView) return false;
const { disallowedTools } = activeView.props;
let status = true;
const { from, to } = state.selection;
......
......@@ -10,7 +10,7 @@ const fillTheGapNode = {
},
parseDOM: [
{
tag: 'span',
tag: 'span.fill-the-gap',
getAttrs(dom) {
return {
id: dom.getAttribute('id'),
......
......@@ -20,7 +20,6 @@ class Image extends Tools {
}
select = activeView => {
if (!activeView) return false;
const {
selection: { from },
} = activeView.state;
......
......@@ -25,7 +25,6 @@ class BulletList extends Tools {
}
select = (state, activeViewId, activeView) => {
if (!activeView) return false;
const {
selection: { from },
} = state;
......
......@@ -10,7 +10,6 @@ class Lift extends Tools {
name = 'Lift';
select = (state, activeViewId, activeView) => {
if (!activeView) return false;
const { disallowedTools } = activeView.props;
if (disallowedTools.includes('lift')) return false;
return lift(state);
......
......@@ -23,8 +23,6 @@ class OrderedList extends Tools {
}
select = (state, activeViewId, activeView) => {
if (!activeView) return false;
const {
selection: { from },
} = state;
......
......@@ -66,7 +66,6 @@ class MultipleChoiceQuestion extends Tools {
}
select = (state, activeView) => {
if (!activeView) return false;
const { disallowedTools } = activeView.props;
if (disallowedTools.includes('MultipleChoice')) return false;
let status = true;
......
......@@ -2,8 +2,6 @@ import Service from '../Service';
import OverlayComponent from './OverlayComponent';
export default class OverlayService extends Service {
boot() {}
register() {
this.container.bind('CreateOverlay').toFactory(context => {
return (Component, componentProps, options) => {
......
......@@ -20,7 +20,6 @@ class Table extends Tools {
}
select = activeView => {
if (!activeView) return false;
const {
selection: { from },
} = 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