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: allow newline with enter in table cell (fixes streetwriters/notesnook#318)
thecodrr169c87fecacb
diff --git a/apps/web/patches/tinymce+5.10.2.patch b/apps/web/patches/tinymce+5.10.2.patchindex 90317f186..fe6440c35 100644--- a/apps/web/patches/tinymce+5.10.2.patch+++ b/apps/web/patches/tinymce+5.10.2.patch@@ -73,3 +73,31 @@ index 987d753..4c33998 100644if (checkCharCode(charCodes, e)) {global$4.setEditorTimeout(editor, function () {handleInlineKey(editor, patternsState.get());+diff --git a/node_modules/tinymce/tinymce.js b/node_modules/tinymce/tinymce.js+index 4cdbfce..3a4897a 100644+--- a/node_modules/tinymce/tinymce.js++++ b/node_modules/tinymce/tinymce.js+@@ -24894,6 +24894,9 @@+ var inPreBlock = function (requiredState) {+ return inBlock('pre', requiredState);+ };++ var inTableCell = function (requiredState) {++ return inBlock('td', requiredState) || inBlock('th', requiredState);++ };+ var inSummaryBlock = function () {+ return inBlock('summary', true);+ };+@@ -24925,6 +24928,13 @@+ return evaluateUntil([+ match([shouldBlockNewLine], newLineAction.none()),+ match([inSummaryBlock()], newLineAction.br()),++ match([++ inTableCell(true),++ hasShiftKey++ ], newLineAction.br()),++ match([++ inTableCell(true)++ ], newLineAction.br()),+ match([+ inPreBlock(true),+ shouldPutBrInPre(false),