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: table, image and video causing overflow in editor
ammarahm-ed72bb528e8393
diff --git a/apps/mobile/android/app/src/main/assets/init.js b/apps/mobile/android/app/src/main/assets/init.jsindex 820cc58e8..c5fa0f31e 100644--- a/apps/mobile/android/app/src/main/assets/init.js+++ b/apps/mobile/android/app/src/main/assets/init.js@@ -21,9 +21,9 @@ function init_tiny(size) {skin_url: 'dist/skins/notesnook',content_css: 'dist/skins/notesnook',plugins: [- "mychecklist advlist autolink textpattern hr lists link noneditable image",- "searchreplace mycode",- "media imagetools table paste wordcount autoresize directionality",+ 'mychecklist advlist autolink textpattern hr lists link noneditable image',+ 'searchreplace mycode',+ 'media imagetools table paste wordcount autoresize directionality',],toolbar: false,paste_data_images: true,@@ -43,6 +43,24 @@ function init_tiny(size) {pre.codeblock {overflow-x:auto;}+ img {+ max-width:100% !important;+ height:auto !important;+ }+ iframe {+ max-width:100% !important;+ }+ table {+ display: block !important;+ overflow-x: auto !important;+ white-space: nowrap !important;+ max-width:100% !important;+ width:100% !important;+ height:auto !important;+ }+ td {+ min-width:20vw !important;+ }`,browser_spellcheck: true,autoresize_bottom_margin: 120,@@ -74,7 +92,7 @@ function init_tiny(size) {editor.on('SetContent', (event) => {if (!event.paste) {reactNativeEventHandler('noteLoaded', true);- }+ }if (event.paste) {isLoading = false;onChange(event);@@ -93,12 +111,12 @@ function init_tiny(size) {},});}-window.prevContent = "";+window.prevContent = '';const onChange = (event) => {- if (event.type === "nodechange" && !event.selectionChange) return;+ if (event.type === 'nodechange' && !event.selectionChange) return;if (editor.getContent() === window.prevContent) return;window.prevContent = editor.getContent();-+if (isLoading) {isLoading = false;return;diff --git a/apps/mobile/html/Web.bundle/site/init.js b/apps/mobile/html/Web.bundle/site/init.jsindex 820cc58e8..d15cfe946 100644--- a/apps/mobile/html/Web.bundle/site/init.js+++ b/apps/mobile/html/Web.bundle/site/init.js@@ -43,6 +43,24 @@ function init_tiny(size) {pre.codeblock {overflow-x:auto;}+ img {+ max-width:100% !important;+ height:auto !important;+ }+ iframe {+ max-width:100% !important;+ }+ table {+ display: block !important;+ overflow-x: auto !important;+ white-space: nowrap !important;+ max-width:100% !important;+ width:100% !important;+ height:auto !important;+ }+ td {+ min-width:20vw !important;+ }`,browser_spellcheck: true,autoresize_bottom_margin: 120,