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
fix url input
ammarahm-edad3bc4c80321
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js b/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.jsindex 0af90aa34..a79f469d3 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/linkinput.js@@ -83,6 +83,9 @@ const ToolbarLinkInput = ({ format, value, setVisible }) => {});return;}+ if (isURL(inputValue)) {+ inputValue = inputValue.indexOf('://') === -1 ? 'http://' + inputValue : inputValue;+ }console.log('format:', format, 'value:', inputValue);properties.userBlur = true;tiny.call(EditorWebView, tiny.restoreRange);diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/linkpreview.js b/apps/mobile/src/views/Editor/tiny/toolbar/linkpreview.jsindex 5998916c7..23b00a35f 100644--- a/apps/mobile/src/views/Editor/tiny/toolbar/linkpreview.js+++ b/apps/mobile/src/views/Editor/tiny/toolbar/linkpreview.js@@ -110,6 +110,7 @@ const LinkPreview = ({ setMode, value, onSubmit }) => {}if (isURL(value)) {+ value = value.indexOf('://') === -1 ? 'http://' + value : value;openLinkInBrowser(value, colors).catch(console.log).then(async () => {