diff --git a/ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.tsx b/ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.tsx index 51401a189..b53db2360 100644 --- a/ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.tsx +++ b/ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/TinyMCE.tsx @@ -616,7 +616,7 @@ const TinyMCE = (props:NoteBodyEditorProps, ref:any) => { .map((a:any) => a.path) ).filter((path:string) => !loadedAssetFiles_.includes(path)); - const jsFiles = ['gui/NoteEditor/NoteBody/TinyMCE/content_script.js'].concat( + const jsFiles = [].concat( pluginAssets .filter((a:any) => a.mime === 'application/javascript') .map((a:any) => a.path) diff --git a/ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/content_script.js b/ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/content_script.js deleted file mode 100644 index 103e0fbcd..000000000 --- a/ElectronClient/gui/NoteEditor/NoteBody/TinyMCE/content_script.js +++ /dev/null @@ -1,5 +0,0 @@ -// eslint-disable-next-line no-unused-vars -const ipcProxySendToHost = (methodName, arg) => { - console.info('TinyMCE ipcProxySendToHost', methodName, arg); - // parent.postMessage({ target: 'main', name: methodName, args: [ arg ] }, '*'); -}; diff --git a/ReactNativeClient/MarkdownEditor/applyWebLinkFormat.js b/ReactNativeClient/MarkdownEditor/applyWebLinkFormat.js index ac174f912..34da3bc51 100644 --- a/ReactNativeClient/MarkdownEditor/applyWebLinkFormat.js +++ b/ReactNativeClient/MarkdownEditor/applyWebLinkFormat.js @@ -3,7 +3,7 @@ import { isStringWebLink, replaceBetween } from './utils'; export const writeUrlTextHere = 'https://example.com'; export const writeTextHereString = 'Write some text here'; -// eslint-disable-next-line no-unused-vars +// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars export default ({ getState, item, setState }) => { const { selection, text } = getState(); let newText; diff --git a/ReactNativeClient/MarkdownEditor/renderButtons.js b/ReactNativeClient/MarkdownEditor/renderButtons.js index 333698d14..5666b38f7 100644 --- a/ReactNativeClient/MarkdownEditor/renderButtons.js +++ b/ReactNativeClient/MarkdownEditor/renderButtons.js @@ -20,7 +20,7 @@ export const renderFormatButtons = ({ getState, setState, color }, formats, mark markdownButton ? markdownButton({ item, getState, setState })