Make drop cursor default to regular caret color

Currently drop cursor defaults to black rather than the text color, which is what normal carets default to. Using `currentcolor` should provide a better default value.
This commit is contained in:
shadow-light
2021-06-10 09:56:06 +10:00
committed by GitHub
parent 2502932fa0
commit 4fdeb944a2

View File

@@ -11,7 +11,7 @@ export const Dropcursor = Extension.create<DropcursorOptions>({
name: 'dropCursor', name: 'dropCursor',
defaultOptions: { defaultOptions: {
color: 'black', color: 'currentcolor',
width: 1, width: 1,
class: null, class: null,
}, },