GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing www.peterbe.com — From @monaco-editor/react to prism-react-editor - Peterbe.com From @monaco-editor/react to prism-react-editorI needed a in-browser editor for editing SQL. Initially, I used used @monaco-editor/react which sits on top of monaco-editor and it's a beast. The problem was that I needed something more lightweight and found prism-react-editor which looks very promising. Now, the network chart looks like this: When I make PRs against this project, I have a GitHub Action that posts a comment about the change in size of the total static asset bundle. It looked like this: Yay! More than 4MB smaller. Admittedly, it's comparing apples to pineapples but good to know. Keyboard shortcutOne important feature that took me some figuring out was how to make Cmd-Enter trigger a form submission. This is/was how you do it with
And this is how you accomplish the same with
ThemingI didn't use AI to make this migration, but I do admit that since it is a side-project I didn't send a whole lot of time reading the manual. After a bit of hacking I figured out how I can get the editor correctly themed in my Mantine app:
That seems to work. Your email will never ever be published. Related posts
|
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |