1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00

Desktop: WYSIWYG: Better handling of links on macOS and inside Katex block

This commit is contained in:
Laurent Cozic 2020-04-02 19:58:25 +01:00
parent 6bd0250ef8
commit 9fa7c9c20a
2 changed files with 6 additions and 1 deletions

View File

@ -160,7 +160,7 @@ const TinyMCE = (props:TinyMCEProps, ref:any) => {
dispatchDidUpdate(editor);
}
if (nodeName === 'A' && event.ctrlKey) {
if (nodeName === 'A' && (event.ctrlKey || event.metaKey)) {
const href = event.target.getAttribute('href');
if (href.indexOf('#') === 0) {

View File

@ -296,6 +296,11 @@ module.exports = function(theme) {
opacity: 0.5;
}
/* We need that to make sure click events have the A has a target */
.katex a span {
pointer-events: none;
}
/* =============================================== */
/* For TinyMCE */
/* =============================================== */