Comments (5)
You may look at this Stackoverflow suggestion : http://stackoverflow.com/questions/31670803/prevent-electron-app-from-redirecting-when-dragdropping-items-in-window
from uncolored.
Hey @clementlamoureux, waddup ? ;)
Your link did help to definitely solve this major issue 🎉
The marked answer of the stackoverflow topic wasn't the solution : we need the user to be able to drag & drop elements (like images) from the editor to the editor. the marked answer code prevent that as well.
BUT, the piece of code I needed was :
MainWindow.webContents.on('will-navigate', (Event) => {
Event.preventDefault();
return false;
});
In the main process, it prevent the app from changing its current view.
Thanks a lot.
Now, it creates another minor thing : I need to clear external editor-compatible elements when they're dropped into the editor.
from uncolored.
Fine @n457 ! That's the solution :) Great project btw !
from uncolored.
Thanks 👍
from uncolored.
Drag & drop feature disabled for external assets only due to possible XSS attack through the app & the document.
from uncolored.
Related Issues (20)
- Add support for tables HOT 1
- Roboto Latin Extended & Ctrl+Alt Shortcuts HOT 1
- Options for changing font sizes of headings and content. HOT 1
- Ability to paste images from clipboard directly into the editor. HOT 2
- Instant auto-save of documents when writing
- feature suggestion: Text Direction Support HOT 3
- How to make the second level items in multilevel list?
- Not showing MD bold after reopening HOT 2
- Image filename but no path? Use document path
- Markdown Syntex does not work HOT 1
- Android version HOT 1
- feature suggestion: Snap package for Linux HOT 3
- Need to install libXScrnSaver-1.2.2-14.fc28.x86_64 to run in Fedora 28
- Line spacing HOT 1
- Could I view a file via command line ?
- Toolbar pops up during týpíñĝ
- font are small, possible to set font size or zoom
- NVM
- Make the UI more readable
- Interface fill bug
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 uncolored.