no autocomplete until upstream merge
This commit is contained in:
parent
9694ecf55b
commit
0fb478a7c8
2 changed files with 2 additions and 3 deletions
|
|
@ -8,8 +8,6 @@ const getInnerText = (html) => {
|
||||||
return div.textContent || div.innerText || '';
|
return div.textContent || div.innerText || '';
|
||||||
};
|
};
|
||||||
|
|
||||||
// atomone, darcula, dracula, duotoneDark, eclipse, gruvboxLight autocompletes are flipped in darkness / lightness
|
|
||||||
|
|
||||||
export function Autocomplete({ doc }) {
|
export function Autocomplete({ doc }) {
|
||||||
return (
|
return (
|
||||||
<div className="prose dark:prose-invert max-h-[400px] overflow-auto">
|
<div className="prose dark:prose-invert max-h-[400px] overflow-auto">
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,8 @@ const extensions = [
|
||||||
highlightField,
|
highlightField,
|
||||||
flashField,
|
flashField,
|
||||||
// javascriptLanguage.data.of({ autocomplete: strudelAutocomplete }),
|
// javascriptLanguage.data.of({ autocomplete: strudelAutocomplete }),
|
||||||
autocompletion({ override: [strudelAutocomplete] }),
|
// autocompletion({ override: [strudelAutocomplete] }),
|
||||||
|
autocompletion({ override: [] }), // wait for https://github.com/uiwjs/react-codemirror/pull/458
|
||||||
];
|
];
|
||||||
|
|
||||||
export default function CodeMirror({
|
export default function CodeMirror({
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue