mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
[TSVB] Replaces EuiCodeEditor 👉 Monaco editor (#100684)
* Сhanged EuiCodeEditor to CodeEditor (monaco) at markdown_editor.js * Added css lang support for monaco-editor. * Added .d.ts for css lang import directly from monaco. * Moved handlebars_url language to the code_editor. Moved handlebars_url language registration to the code_editor. Changed the way of registration of languages. * Added merge for markdown_handlebars lang. * Changed to simple markdown syntax. Handlebars syntax breaks highlighting of special chars in markdown syntax. * Removed useless mergeConfig function. * Removed legacy import. * Refactor export from monaco-editor. * Fixed 'Could not find a declaration file for module' * Fixed tests. * Fixed typings errors. * Added comment to typings. * Fixed clearMarkdown for Monaco editor. * Made changes based on suggestions. * Fixed types errors. * Fixed function tests types errors. * Fixes, based on nits. * Fixes based on nits. Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
61b6496476
commit
a7444835dd
24 changed files with 204 additions and 56 deletions
4
typings/index.d.ts
vendored
4
typings/index.d.ts
vendored
|
@ -33,3 +33,7 @@ declare module 'axios/lib/adapters/xhr';
|
|||
// See https://github.com/storybookjs/storybook/issues/11684
|
||||
declare module 'react-syntax-highlighter/dist/cjs/create-element';
|
||||
declare module 'react-syntax-highlighter/dist/cjs/prism-light';
|
||||
|
||||
// Monaco languages support
|
||||
declare module 'monaco-editor/esm/vs/basic-languages/markdown/markdown';
|
||||
declare module 'monaco-editor/esm/vs/basic-languages/css/css';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue