Comments (11)
Maybe this will help add, modify and delete files:
https://developer.mozilla.org/en-US/docs/WebAPI/Device_Storage?redirectlocale=en-US&redirectslug=WebAPI%2FDevice_Storage_API
from firetext.
Yes^^ I am working on it offline right now.
from firetext.
Do we need the saving action in the permission section in manifest file (to access api) i.e.
"permissions": {
"storage": {
"description": "Required for writing, reading and modifying files",
"access": "readcreate", "readwrite"
}
from firetext.
Looks like we need a "device-storage:sdcard":{ "access": "readwrite" }
permission. See: https://developer.mozilla.org/en-US/docs/Apps/App_permissions.
Landed in 7bfc8d3.
from firetext.
bed2de2 Added save support, but the permissions system is still blocking it. Any ideas? (to test go into edit mode, and hit the save button).
from firetext.
Hmmm... It works for me the first time I try to save a file of a certain file name, but after that I get a NoModificationAllowedError
. Maybe the file is being saved as read-only?
from firetext.
I think that might be it, but I don't know how to get around that
issue. The permission says read+write access. Will ask on IRC tomorrow.
from firetext.
Fixed it!
from firetext.
how?
from firetext.
If the code can't save the file (because another file of that name exists), it deletes the old copy and then saves the file.
from firetext.
👍
from firetext.
Related Issues (20)
- Add "clear formatting" button
- Handle manual file save errors
- Handle automatic file save errors HOT 2
- Clicking outside dialogs should close them
- Refactor event handler HOT 6
- Open source server-side code HOT 3
- Document sanitization
- Edit code files
- SDCard error should be handled properly
- Simplify document lists
- RTL layout in code editor is broken
- Exclude styles from document preview HOT 2
- Font selector
- Themes HOT 10
- .txt files do not save properly
- Listing dependencies HOT 3
- Firetext 0.5.1 broken in simulator HOT 9
- OS Ticket - Theme not displaying data HOT 1
- Run in electron (or similar) HOT 5
- Porting to Aurelia. HOT 6
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 firetext.