diff --git a/index.html b/index.html
index 97a8ce3..3ce36e3 100644
--- a/index.html
+++ b/index.html
@@ -2,28 +2,46 @@
-
+
+
+
+
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
+
+
drawDB | Online database diagram editor and SQL generator
diff --git a/src/assets/favicon.ico b/public/favicon.ico
similarity index 100%
rename from src/assets/favicon.ico
rename to public/favicon.ico
diff --git a/public/images/icons/LICENSE.md b/public/images/icons/LICENSE.md
deleted file mode 100644
index ce74f6a..0000000
--- a/public/images/icons/LICENSE.md
+++ /dev/null
@@ -1,5 +0,0 @@
-Bootstrap Icons
-https://icons.getbootstrap.com
-
-Licensed under MIT license
-https://github.com/twbs/icons/blob/main/LICENSE.md
diff --git a/public/images/icons/pencil-fill-dark.svg b/public/images/icons/pencil-fill-dark.svg
deleted file mode 100644
index 53f7242..0000000
--- a/public/images/icons/pencil-fill-dark.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
\ No newline at end of file
diff --git a/public/images/icons/pencil-fill.svg b/public/images/icons/pencil-fill.svg
deleted file mode 100644
index bb2dbea..0000000
--- a/public/images/icons/pencil-fill.svg
+++ /dev/null
@@ -1,3 +0,0 @@
-
\ No newline at end of file
diff --git a/src/plugins/ToolbarPlugin.jsx b/src/plugins/ToolbarPlugin.jsx
index dc9dc08..079a6e8 100644
--- a/src/plugins/ToolbarPlugin.jsx
+++ b/src/plugins/ToolbarPlugin.jsx
@@ -82,7 +82,7 @@ function positionEditorElement(editor, rect) {
}
}
-function FloatingLinkEditor({ editor, theme }) {
+function FloatingLinkEditor({ editor }) {
const editorRef = useRef(null);
const inputRef = useRef(null);
const mouseDownRef = useRef(false);
@@ -206,15 +206,6 @@ function FloatingLinkEditor({ editor, theme }) {
{linkUrl}
- event.preventDefault()}
- onClick={() => {
- setEditMode(true);
- }}
- />
>
)}
@@ -386,8 +377,7 @@ function BlockOptionsDropdownList({ editor, blockType }) {
);
}
-export default function ToolbarPlugin(props) {
- const { theme } = props;
+export default function ToolbarPlugin() {
const [editor] = useLexicalComposerContext();
const toolbarRef = useRef(null);
const [canUndo, setCanUndo] = useState(false);
@@ -527,10 +517,7 @@ export default function ToolbarPlugin(props) {
-
+
{blockType === "code" ? (
@@ -596,7 +583,7 @@ export default function ToolbarPlugin(props) {
{isLink &&
createPortal(
-
,
+
,
document.body
)}
diff --git a/src/styles/richeditor.css b/src/styles/richeditor.css
index cff7573..09d0c9e 100644
--- a/src/styles/richeditor.css
+++ b/src/styles/richeditor.css
@@ -350,34 +350,6 @@ pre::-webkit-scrollbar-thumb {
font-family: inherit;
}
-.link-edit {
- background-image: url(/images/icons/pencil-fill.svg);
- background-size: 16px;
- background-position: center;
- background-repeat: no-repeat;
- width: 35px;
- vertical-align: -0.25em;
- position: absolute;
- right: 0;
- top: 0;
- bottom: 0;
- cursor: pointer;
-}
-
-.link-edit-dark {
- background-image: url(/images/icons/pencil-fill-dark.svg);
- background-size: 16px;
- background-position: center;
- background-repeat: no-repeat;
- width: 35px;
- vertical-align: -0.25em;
- position: absolute;
- right: 0;
- top: 0;
- bottom: 0;
- cursor: pointer;
-}
-
.link-editor .link-input a {
color: rgb(33, 111, 219);
text-decoration: none;