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

hide tab

parent 416c64be
No related branches found
No related tags found
1 merge request!277Editoria fixes
......@@ -4,7 +4,7 @@
"version": "0.0.42",
"description": "Wax prosemirror UI components",
"license": "MIT",
"main": "index.js",
"main": "dist/index.js",
"files": [
"dist"
],
......
......@@ -21,6 +21,7 @@ const activeTab = css`
`;
const disabledTab = css`
display: none;
cursor: not-allowed;
opacity: 0.4;
`;
......
......@@ -4,7 +4,7 @@
"version": "0.0.42",
"description": "Wax prosemirror core",
"license": "MIT",
"main": "index.js",
"main": "dist/index.js",
"files": [
"dist"
],
......
import React, {
useRef,
useContext,
useCallback,
useMemo,
useState,
} from 'react';
import React, { useRef, useContext, useCallback, useMemo } from 'react';
import applyDevTools from 'prosemirror-dev-tools';
import { EditorState } from 'prosemirror-state';
......@@ -23,7 +17,6 @@ export default props => {
const editorRef = useRef();
let view;
const context = useContext(WaxContext);
const [previousState, setPreviousState] = useState();
const setEditorRef = useCallback(
node => {
if (editorRef.current) {
......
......@@ -4,7 +4,7 @@
"version": "0.0.42",
"description": "Wax prosemirror plugins",
"license": "MIT",
"main": "index.js",
"main": "dist/index.js",
"files": [
"dist"
],
......
......@@ -4,7 +4,7 @@
"version": "0.0.42",
"description": "Wax prosemirror schema",
"license": "MIT",
"main": "index.js",
"main": "dist/index.js",
"files": [
"dist"
],
......
......@@ -4,7 +4,7 @@
"version": "0.0.42",
"description": "Wax prosemirror services",
"license": "MIT",
"main": "index.js",
"main": "dist/index.js",
"files": [
"dist"
],
......
......@@ -4,7 +4,7 @@
"version": "0.0.42",
"description": "Wax prosemirror utilities",
"license": "MIT",
"main": "index.js",
"main": "dist/index.js",
"files": [
"dist"
],
......
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