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
add a button to delete video embed
ammarahm-edc6381ea06959
diff --git a/apps/mobile/android/app/src/main/assets/init.js b/apps/mobile/android/app/src/main/assets/init.jsindex bed0300f2..6b98c8815 100755--- a/apps/mobile/android/app/src/main/assets/init.js+++ b/apps/mobile/android/app/src/main/assets/init.js@@ -231,6 +231,7 @@ function init_tiny(size) {},image_description: false,image_caption: false,+ media_dimensions:false,font_formats:'Times New Roman=times new roman,times;' +'Serif=serif;' +@@ -259,6 +260,31 @@ function init_tiny(size) {});}});++ editor.ui.registry.addButton('deletevideo', {+ icon: 'remove',+ tooltip: 'Remove iframe',+ onAction: function () {+ editor.undoManager.transact(function () {+ tinymce.activeEditor.execCommand('Delete');+ });+ },+ onclick: function () {+ editor.undoManager.transact(function () {+ tinymce.activeEditor.execCommand('Delete');+ });+ }+ });++ editor.ui.registry.addContextToolbar('iframecontrols', {+ predicate: function (node) {+ return node.getAttribute("data-mce-object") === "iframe"+ },+ items: 'deletevideo',+ position: 'node',+ scope: 'node'+ });+editor.ui.registry.addButton('imageopts', {icon: 'image-options',tooltip: 'Image properties',diff --git a/apps/mobile/html/Web.bundle/site/init.js b/apps/mobile/html/Web.bundle/site/init.jsindex bed0300f2..6b98c8815 100755--- a/apps/mobile/html/Web.bundle/site/init.js+++ b/apps/mobile/html/Web.bundle/site/init.js@@ -231,6 +231,7 @@ function init_tiny(size) {},image_description: false,image_caption: false,+ media_dimensions:false,font_formats:'Times New Roman=times new roman,times;' +'Serif=serif;' +@@ -259,6 +260,31 @@ function init_tiny(size) {});}});++ editor.ui.registry.addButton('deletevideo', {+ icon: 'remove',+ tooltip: 'Remove iframe',+ onAction: function () {+ editor.undoManager.transact(function () {+ tinymce.activeEditor.execCommand('Delete');+ });+ },+ onclick: function () {+ editor.undoManager.transact(function () {+ tinymce.activeEditor.execCommand('Delete');+ });+ }+ });++ editor.ui.registry.addContextToolbar('iframecontrols', {+ predicate: function (node) {+ return node.getAttribute("data-mce-object") === "iframe"+ },+ items: 'deletevideo',+ position: 'node',+ scope: 'node'+ });+editor.ui.registry.addButton('imageopts', {icon: 'image-options',tooltip: 'Image properties',