A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
feat: allow user to focus editor by clicking anywhere
thecodrra0a268a1b592
diff --git a/apps/web/src/components/editor/react-quill.js b/apps/web/src/components/editor/react-quill.jsindex 1ffb31772..5ec13239a 100644--- a/apps/web/src/components/editor/react-quill.js+++ b/apps/web/src/components/editor/react-quill.js@@ -4,6 +4,7 @@ import "quill/dist/quill.snow.css";import "quill/dist/quill.core.css";import MarkdownShortcuts from "./modules/markdown";import MagicUrl from "quill-magic-url";+import { Text } from "rebass";Quill.register("modules/markdownShortcuts", MarkdownShortcuts);Quill.register("modules/magicUrl", MagicUrl);@@ -127,6 +128,16 @@ export default class ReactQuill extends Component {}render() {- return <pre onFocus={this.props.onFocus} id={this.props.id} />;+ return (+ <Text+ as="pre"+ sx={{ cursor: "text" }}+ onClick={() => {+ this.quill.focus();+ }}+ onFocus={this.props.onFocus}+ id={this.props.id}+ />+ );}}