jeremy@jermolene.com
e9e5d37ff0
Draggable widget: Add option to hide drag image
...
Thanks @ericshulman
Fixes #6027
2021-09-12 14:20:03 +01:00
Joshua Fontany
33eef0202d
Adds $tw.utils.decodeURISafe and $tw.utils.decodeURIComponentSafe ( #5999 )
...
* call self.displayError
* Revert "call self.displayError"
This reverts commit 5d599aa979
.
* fixes decodeURI & decodeURIComponent
2021-08-29 13:39:32 +01:00
Joe Bordes
82ec63e711
style(App) eliminate whitespace at the end of code lines ( #5735 )
2021-05-30 19:20:17 +01:00
Saq Imtiaz
05d38054c8
Drag and drop images in the editor to import and insert ( #5699 )
...
* Merge
* Clean up
* More clean up
* Ensure image import works when type is not set, clean up post import actions
* Removed spurious new line
* For non image files insert a tiddler link
* Added documentation for new settings and features
2021-05-19 21:52:43 +01:00
Jermolene
f98b4d5956
Add more logging for drop operations
2018-09-13 20:42:35 +01:00
BurningTreeC
afe14b47b5
draggable widget: actions on drag-start and drag-end ( #3203 )
...
* pass drag-start end drag-end actions to draggable
* Update dragndrop.js
* Update dragndrop.js
* Update dragndrop.js
* Update dragndrop.js
* Update dragndrop.js
* renaming dragstart/dragend -> start/end
* renaming dragstart/dragend -> start/end
* adding docs
2018-04-08 10:29:17 +01:00
BurningTreeC
42660b05a7
check if dataTransfer is undefined ( #3093 )
...
this prevents an error when dragging elements not by mouse where dataTransfer can be undefined
2018-01-20 17:28:10 +00:00
Jermolene
1e106a8f3d
Better handling of dropeffect
2017-03-28 15:09:36 +01:00
Jermolene
f3cab3753e
Don't set draggable property for links
2017-03-28 13:05:00 +01:00
Jermolene
d3fe4f600a
Partially fix drag and drop on IE11
...
These changes allow drag and drop to work with one issue: <a> links are
not draggable; draggable divs, spans, buttons etc. seem to work fine.
There’s some issue with IE11 that I don’t understand.
For testing, you can force links to become spans by changing line 64 of
$:/core/modules/widgets/link.js to:
var domNode = this.document.createElement("span");
2017-03-27 09:59:40 +01:00
Jermolene
1f860bd04e
Fix problem with dragging links
2017-03-23 17:52:15 +00:00
Jermolene
b1ed77d6b8
Switch drag image to use draggable DOM node
...
We’ll still support dragging pills, but dragging the DOM node image
seems to look better in most situations.
2017-03-23 17:02:26 +00:00
Jermolene
8f1114960a
Refactor draggable stuff for easier reuse
...
And in the process, make the button widget draggable.
Unfortunately, Firefox has a bug that prevents buttons from being
dragged (see https://bugzilla.mozilla.org/show_bug.cgi?id=568313 and
https://bugzilla.mozilla.org/show_bug.cgi?id=646823 ). So we have to use
the “tag” attribute to make it use a different element.
2017-03-23 14:23:33 +00:00