mirror of https://github.com/laurent22/joplin.git
Disable filters for now
parent
9b28a8995f
commit
e570f7a226
|
@ -25,7 +25,7 @@ import 'codemirror/keymap/sublime'; // Used for swapLineUp and swapLineDown
|
|||
|
||||
import 'codemirror/mode/meta';
|
||||
|
||||
import eventManager from 'lib/eventManager';
|
||||
// import eventManager from 'lib/eventManager';
|
||||
|
||||
const { reg } = require('lib/registry.js');
|
||||
|
||||
|
@ -147,7 +147,8 @@ function Editor(props: EditorProps, ref: any) {
|
|||
useEffect(() => {
|
||||
if (!editorParent.current) return () => {};
|
||||
|
||||
const userOptions = eventManager.filterEmit('codeMirrorOptions', {});
|
||||
// const userOptions = eventManager.filterEmit('codeMirrorOptions', {});
|
||||
const userOptions = {};
|
||||
|
||||
const cmOptions = Object.assign({}, {
|
||||
value: props.value,
|
||||
|
|
|
@ -19,7 +19,7 @@ const rules = {
|
|||
mermaid: require('./MdToHtml/rules/mermaid').default,
|
||||
};
|
||||
|
||||
const eventManager = require('lib/eventManager').default;
|
||||
// const eventManager = require('lib/eventManager').default;
|
||||
const setupLinkify = require('./MdToHtml/setupLinkify');
|
||||
const hljs = require('highlight.js');
|
||||
const nodeSlug = require('slug');
|
||||
|
@ -304,10 +304,10 @@ class MdToHtml {
|
|||
}
|
||||
}
|
||||
|
||||
const extraPlugins = eventManager.filterEmit('mdToHtmlPlugins', {});
|
||||
for (const key in extraPlugins) {
|
||||
markdownIt.use(extraPlugins[key].module, extraPlugins[key].options);
|
||||
}
|
||||
// const extraPlugins = eventManager.filterEmit('mdToHtmlPlugins', {});
|
||||
// for (const key in extraPlugins) {
|
||||
// markdownIt.use(extraPlugins[key].module, extraPlugins[key].options);
|
||||
// }
|
||||
|
||||
setupLinkify(markdownIt);
|
||||
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
/**
|
||||
* @ignore
|
||||
*
|
||||
* Not sure if it's the best way to hook into the app
|
||||
* so for now disable filters.
|
||||
*/
|
||||
|
||||
import eventManager from 'lib/eventManager';
|
||||
|
||||
export default class JoplinFilters {
|
||||
|
|
Loading…
Reference in New Issue