Closed jwheatp closed 2 years ago
hi @jwheatp
Thanks for your reporting.
I will check it.
can you tell me codemirror mode ? (scss?)
The mode is "text/x-scss"
require("codemirror/mode/css/css.js");
CodeMirror(this.$refs.editor, {
value: this.code,
mode: "text/x-scss",
theme: "ambiance",
colorpicker : {
mode : 'edit',
type : 'vscode'
},
});
@jwheatp
I released new version (codemirror-colorpicker@1.9.73)
Please test it .
Thank you.
it works great, thanks for your quick fix @easylogic !
First, thank you for your great work.
Describe the bug When using CodeMirror in Scss mode with variables, this happen if you choose a color name as variable name :
Seems we need to add to the exluded token the "variable" token. https://github.com/easylogic/codemirror-colorpicker/blob/main/src/extension/codemirror/colorview.js#L7
Is it enough ? :)