Comments (3)
I suspect the file id stays the same after the rename but the file is now opened with the plaintext editor rather than the markdown editor. At the same time it tries to recover the y.js state from the previous editing session which is invalid in the plaintext editor context.
Nice catch! We did not account for that yet.
from text.
I was able to reproduce this. Definitely something we should look into. @juliushaertl @max-nextcloud any idea what is happening here? I would have expected the markdown source to be displayed in the editor instead of all content being deleted 🤔
from text.
I see two ways to fix this:
- Clear the document state and all related database entries when a rename changes the mime type between markdown and something else.
- add a mimetype or editor type to the
key
for finding the document state for a given document - both
from text.
Related Issues (20)
- [stable28] Copied version number inside multiple paragraphs is escaped.
- Mention circle in markdown documents HOT 1
- No folder description in Favorites from 28 on
- Translated readme title escaped after creating the file
- Editing in code block does not work in firefox
- NotFoundException
- Detect inconsistent initial steps in yjs and require page reload
- Hovering over a link no longer shows the native link preview in the browser
- Close has already been called on the connection
- Markdown standard links. HOT 2
- Deleting a line is impossible HOT 2
- Table cells containing repeated newlines get garbled HOT 4
- Ctrl+A inside table should only select all of the cells content instead of the whole document.
- Cannot use dropdown menus in translate popup in Text HOT 2
- [Bug]: "Editing session has expired. Please reload the page." on public share links with readme.md HOT 2
- Markdown files with attachments cannot be edited locally
- Search highlighting
- Long documents slow Chrome/Chromium to a halt HOT 3
- Reference-style Markdown links are auto-replaced by inline links and thus text legibility is reduced 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 text.