You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-13 22:12:50 +02:00
Desktop: WYSIWYG: Better handling of links on macOS and inside Katex block
This commit is contained in:
@@ -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 */
|
||||
/* =============================================== */
|
||||
|
Reference in New Issue
Block a user