mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-21 22:19:41 +01:00
change Editor import
This commit is contained in:
71779
packages/editor-mobile/package-lock.json
generated
71779
packages/editor-mobile/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -3,21 +3,17 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@notesnook/theme": "file:../themeprovider",
|
"@notesnook/theme": "github:streetwriters/themeprovider",
|
||||||
"@tiptap/starter-kit": "2.0.0-beta.185",
|
|
||||||
"@tiptap/core": "2.0.0-beta.176",
|
|
||||||
"@tiptap/react": "2.0.0-beta.109",
|
|
||||||
"framer-motion": "^4.1.17",
|
"framer-motion": "^4.1.17",
|
||||||
"mdi-react": "^8.4.0",
|
"mdi-react": "^8.4.0",
|
||||||
"notesnook-editor": "file:../notesnook-editor",
|
"notesnook-editor": "github:streetwriters/notesnook-editor#develop",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.1",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.1",
|
||||||
"zustand": "^3.6.8"
|
"zustand": "^3.6.8"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"react": "17.0.2",
|
"@types/react": "^17.0.39",
|
||||||
"@types/react": "17.0.39",
|
"@types/react-dom": "^17.0.11"
|
||||||
"@types/react-dom": "17.0.11"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@testing-library/jest-dom": "^5.16.0",
|
"@testing-library/jest-dom": "^5.16.0",
|
||||||
@@ -28,7 +24,7 @@
|
|||||||
"@types/react": "^17.0.39",
|
"@types/react": "^17.0.39",
|
||||||
"@types/react-dom": "^17.0.11",
|
"@types/react-dom": "^17.0.11",
|
||||||
"react-error-overlay": "6.0.9",
|
"react-error-overlay": "6.0.9",
|
||||||
"react-scripts": "^5.0.1",
|
"react-scripts": "^4.0.3",
|
||||||
"typescript": "^4.7.2",
|
"typescript": "^4.7.2",
|
||||||
"web-vitals": "^1.1.2"
|
"web-vitals": "^1.1.2"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Editor } from "@tiptap/react";
|
import { Editor } from "notesnook-editor";
|
||||||
|
|
||||||
type ButtonType = {
|
type ButtonType = {
|
||||||
editor: Editor | null;
|
editor: Editor | null;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Editor } from "@tiptap/core";
|
import { Editor } from "notesnook-editor";
|
||||||
import { Attachment } from "notesnook-editor/dist/extensions/attachment";
|
import { Attachment } from "notesnook-editor/dist/extensions/attachment";
|
||||||
import { useCallback, useEffect, useRef, useState } from "react";
|
import { useCallback, useEffect, useRef, useState } from "react";
|
||||||
import { useEditorThemeStore } from "../state/theme";
|
import { useEditorThemeStore } from "../state/theme";
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
|
||||||
const settingsJson = localStorage.getItem("editorSettings");
|
const settingsJson = localStorage.getItem("editorSettings");
|
||||||
|
|
||||||
const initialState = {
|
const initialState = {
|
||||||
readonly: false,
|
readonly: false,
|
||||||
fullscreen: false,
|
fullscreen: false,
|
||||||
@@ -37,6 +36,8 @@ const initialState = {
|
|||||||
["alignCenter", ["alignLeft", "alignRight", "alignJustify", "ltr", "rtl"]],
|
["alignCenter", ["alignLeft", "alignRight", "alignJustify", "ltr", "rtl"]],
|
||||||
["clearformatting"],
|
["clearformatting"],
|
||||||
],
|
],
|
||||||
|
noHeader: false,
|
||||||
|
noToolbar: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
global.settingsController = {
|
global.settingsController = {
|
||||||
|
|||||||
Reference in New Issue
Block a user