Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

web: fix editor theme not changing with app theme

Abdullah Atta942c9556f65e
diff --git a/apps/web/src/components/editor/tiptap.tsx b/apps/web/src/components/editor/tiptap.tsx
index 9bf80b2f4..e770af131 100644
--- a/apps/web/src/components/editor/tiptap.tsx
+++ b/apps/web/src/components/editor/tiptap.tsx
@@ -275,7 +275,7 @@ function TipTap(props: TipTapProps) {
return true;
}
};
- }, [readonly, nonce, doubleSpacedLines, dateFormat, timeFormat]);
+ }, [theme, readonly, nonce, doubleSpacedLines, dateFormat, timeFormat]);
const editor = useTiptap(
tiptapOptions,
diff --git a/apps/web/src/global.d.ts b/apps/web/src/global.d.ts
index 8a1e1a382..17c5be260 100644
--- a/apps/web/src/global.d.ts
+++ b/apps/web/src/global.d.ts
@@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+import "vite/client";
declare interface Window {
os: NodeJS.Platform | "mas";
NativeNNCrypto?: new () => import("@notesnook/crypto").NNCrypto;