Comments (10)
Yeah, maybe. The issue is that react will re-create the component instead of reusing the editor we already have. This is one of the most important issues we have right now. I would love to support undo across different modes for example.
from editor.
Just to explain this a bit more. The problem is that react recreates components when a subtree of the dom changes. This means we recreate the monaco editor instance in some case and erase the (undo) history.
from editor.
We have fixed the issue when the Vega editor instance is opened side by side with Vega-Lite. However, switching from Vega to Vega-Lite and vice versa or opening examples still creates a new editor.
from editor.
@domoritz On switching from vega to vega-lite, we can just change the editorString right? This is how this issue can be solved right?
from editor.
Oh okay. You mean undo can be done even if we switch editors?
from editor.
It can't right now because we create a new Monaco instance.
from editor.
Yeah right. I'll try to fix this issue.
What I am thinking is that we just change editorStrings. This will prevent from creating a new instance and also undoing will be possible. I'll look into it and let you know the progress soon
from editor.
Great. It's a bit tricky to do but shouldn't be impossible.
from editor.
I have unassigned this issue to myself so others can also take a look.
from editor.
We support undo/redo across modes now.
from editor.
Related Issues (20)
- Initialize editor using query parameter HOT 1
- Get parse errors and warnings directly from the Monaco editor. HOT 1
- Data dependencies are not shown in dataflow viewer HOT 3
- Docker Compose is missing HOT 3
- Access to CSV has been blocked by CORS policy HOT 1
- Usage Instructions Fail for Local Installation on Windows HOT 3
- Support 2x resolution in the PNG export HOT 1
- Not able to run editor locally following instructions in Readme HOT 1
- Exporting to png adds grid lines.
- Feature Request - Add Detailed Tooltips in Data Viewer HOT 2
- 'Commands' does no longer work - 'TypeError: undefined is not an object' HOT 4
- Label Transform is not positioning the labels properly (anymore) HOT 5
- Specs keeps loading forever - 'TypeError: cannot read properties of undefined' HOT 3
- Line Comment shortcut ctrl+/ does not work on Windows HOT 6
- [bug] Vega editor online demo is not available. HOT 3
- Make sure the Vega editor with Vite works with linked Vega and Vega-Lite packages HOT 4
- Public Facing Vega Editor Not Loading HOT 1
- Feature: Formal URL API HOT 7
- Link issue when developing vega-lite and testing local changes in vega editor HOT 7
- Can't use local version of `vega-transforms` in editor HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editor.