Saq Imtiaz
fe1147c6fd
Fix: restore drag and drop on mobile chrome ( #6789 )
2022-07-15 18:19:44 +01:00
Saq Imtiaz
19331cc6f9
Fix: brittle selector implementation for draggable widget ( #6786 )
...
* Fix: fixes #6595 , brittle selector implementation for draggable widget
* Docs: updated for fix to selector implementation for draggable widget
2022-07-15 15:38:09 +01:00
Simon Huber
2fd17e864c
Fix: dragndrop missing variables ( #6632 )
2022-04-15 17:05:27 +01:00
Simon Huber
58dd47d128
Add "tv-selectednode-width" and "tv-selectednode-height" ... ( #6582 )
...
* Add "tv-selectednode-width" and "tv-selectednode-height" ...
... variables to dragstartactions
* Update dragndrop.js
* Update dragndrop.js
* Add docs
* Update dragndrop.js
* Update dragndrop.js
* Update DraggableWidget.tid
* Update modifier Variable.tid
* Update modifier Variable.tid
* Update eventcatcher.js
* Update dom.js
* Update dragndrop.js
* Update dragndrop.js
* Update DraggableWidget.tid
* add a space after //
* Update modifier Variable.tid
2022-04-15 13:46:09 +01:00
Saq Imtiaz
4054566493
Extend $draggable to support an optional drag handle ( #6480 )
...
* feat: extend to support a selector attribute identifying the DOM element to be used as the drag handle
* fix: remove redundant variable declaration
* fix: remove extranneous variable declaration
2022-02-24 11:06:18 +00:00
Jeremy Ruston
82c8fe7fa8
Introduce JSON parse utility function with error handling ( #6401 )
...
* Introduce JSON parse utility function with error handling
Fixes #6400
* Fix typo
2022-02-21 15:29:25 +00:00
Saq Imtiaz
7fcc84156e
Fix: issues with drag and drop in Chrome 96 ( #6261 )
...
* fix: issues with drag and drop (false positives in detection for files being dropped) introduced by Chrome 96
* fix: call dragEventContainsType method more consistently.
* fix: call dragEventContainsType method more consistently.
2021-11-21 20:48:16 +00:00
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