fix: a Word hyperlink keeps the look its file gives it
Word paints a link through its Hyperlink character style, never for being one, so the editor's own blue overwrote both the file's #0000FF and the plain black of a link carrying no style at all. The DOCX importer marks those `plain` and the CSS leaves them alone; LibreOffice paints every ODF text:a, so those keep the visual.
This commit is contained in:
1 parent
8db6214c11
commit
95d174501d
6 files changed
+59
-5
No files matched your search
@@ -192,10 +192,17 @@
|
||||
}
|
||||
|
||||
/* Hyperlinks (link.ts). Ctrl/Cmd+click opens them (Editor.svelte). */
|
||||
/* The browser's own link colour is off first: a link Word left unstyled is drawn like the
|
||||
text around it, since there the blue is a character style, not a property of being a
|
||||
link (link.ts). Every other link — ODF paints them all — takes the visual back. */
|
||||
.paper .tiptap a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
cursor: text;
|
||||
}
|
||||
.paper .tiptap a:not([data-plain]) {
|
||||
color: #1a56db;
|
||||
text-decoration: underline;
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
/* Find & Replace match highlights (searchReplace.ts); current match is stronger. */
|
||||
|
||||
Reference in new issue
Block a user