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:
parent
6bd0250ef8
commit
9fa7c9c20a
@ -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) {
|
||||
|
@ -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 */
|
||||
/* =============================================== */
|
||||
|
Loading…
Reference in New Issue
Block a user