Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

Add reference links to lexical editor files

1ilitc67f7f512e54
diff --git a/src/components/LexicalEditor/AutoLinkPlugin.jsx b/src/components/LexicalEditor/AutoLinkPlugin.jsx
index 3230c3d1..02f69321 100644
--- a/src/components/LexicalEditor/AutoLinkPlugin.jsx
+++ b/src/components/LexicalEditor/AutoLinkPlugin.jsx
@@ -1,3 +1,7 @@
+/**
+ * See https://codesandbox.io/p/sandbox/vigilant-kate-5tncvy?file=%2Fsrc%2Fplugins%2FAutoLinkPlugin.js
+*/
+
import { AutoLinkPlugin } from "@lexical/react/LexicalAutoLinkPlugin";
const URL_MATCHER =
diff --git a/src/components/LexicalEditor/CodeHighlightPlugin.jsx b/src/components/LexicalEditor/CodeHighlightPlugin.jsx
index f9318052..9ebbedd8 100644
--- a/src/components/LexicalEditor/CodeHighlightPlugin.jsx
+++ b/src/components/LexicalEditor/CodeHighlightPlugin.jsx
@@ -1,3 +1,7 @@
+/**
+ * See https://codesandbox.io/p/sandbox/vigilant-kate-5tncvy?file=%2Fsrc%2Fplugins%2FCodeHighlightPlugin.js
+ */
+
import { registerCodeHighlighting } from "@lexical/code";
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
import { useEffect } from "react";
diff --git a/src/components/LexicalEditor/ListMaxIndentLevelPlugin.jsx b/src/components/LexicalEditor/ListMaxIndentLevelPlugin.jsx
index 553e4f4d..d1293fcf 100644
--- a/src/components/LexicalEditor/ListMaxIndentLevelPlugin.jsx
+++ b/src/components/LexicalEditor/ListMaxIndentLevelPlugin.jsx
@@ -1,3 +1,7 @@
+/**
+ * See https://codesandbox.io/p/sandbox/vigilant-kate-5tncvy?file=%2Fsrc%2Fplugins%2FListMaxIndentLevelPlugin.js
+ */
+
import { $getListDepth, $isListItemNode, $isListNode } from "@lexical/list";
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
import {
diff --git a/src/components/LexicalEditor/ToolbarPlugin.jsx b/src/components/LexicalEditor/ToolbarPlugin.jsx
index 852fc798..fd021add 100644
--- a/src/components/LexicalEditor/ToolbarPlugin.jsx
+++ b/src/components/LexicalEditor/ToolbarPlugin.jsx
@@ -1,3 +1,7 @@
+/**
+ * See https://codesandbox.io/p/sandbox/vigilant-kate-5tncvy?file=%2Fsrc%2Fplugins%2FToolbarPlugin.js
+ */
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import {
diff --git a/src/components/LexicalEditor/styles/index.css b/src/components/LexicalEditor/styles/index.css
index 09d0c9e2..170625c2 100644
--- a/src/components/LexicalEditor/styles/index.css
+++ b/src/components/LexicalEditor/styles/index.css
@@ -1,3 +1,5 @@
+/* See https://codesandbox.io/p/sandbox/vigilant-kate-5tncvy?file=%2Fsrc%2Fstyles.css */
+
.ltr {
text-align: left;
}