1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-13 22:12:50 +02:00

Fix for #1426, aded backticks to auto-wrapping quotes.

This commit is contained in:
luis
2019-05-17 23:50:33 -05:00
parent e4a08c29d7
commit 7dee93076a

View File

@@ -865,6 +865,9 @@ class NoteTextComponent extends React.Component {
return output; return output;
} }
//fixes #1426 but this is an Ace issue, so it can be removed if ace/brace is updated.
this.editor_.editor.getSession().getMode().$quotes = {'"': '"', "'": "'", "`": "`"};
// Disable Markdown auto-completion (eg. auto-adding a dash after a line with a dash. // Disable Markdown auto-completion (eg. auto-adding a dash after a line with a dash.
// https://github.com/ajaxorg/ace/issues/2754 // https://github.com/ajaxorg/ace/issues/2754
const that = this; // The "this" within the function below refers to something else const that = this; // The "this" within the function below refers to something else