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
Saq Imtiaz
b267a71f2d
Dropzone: persistent dragover state fix ( #5688 )
2021-05-16 14:01:46 +01:00
Saq Imtiaz
07caa16e87
Extend dropzone to also use the specified deserializer for strings either dropped or pasted on to the dropzone. ( #5601 )
2021-04-27 10:15:27 +01:00
Saq Imtiaz
eced60853f
Extend Dropzone widget ( #5597 )
...
* Extend dropzone widget with optional actions invoked after tm-import-tiddlers message has been sent. Allows triggering an alternative UX for the import
* Allow restricting a dropzone to specific mimeTypes via mimeTypes and mimeTypesPrefix attributes
* Use a mimeTypesFilter instead of the mimeTypes and mimeTypesPrefix attributes
* Updated refresh handling
* Syntax cleanup
* Replace references to mimeType with content type for consistency with existing documentation. Update documentation for DropZone widget
2021-04-10 09:48:50 +01:00
saqimtiaz
d46872c061
Extend tm-import-tiddlers message ( #4741 )
...
* Allow tm-import-tiddlers event to override tv-auto-open-on-import
* Add autoOpenOnImport attribute to dropzone
* Updated DropZone docs
* Updated dropzone to support importTitle attribute
* Updated navigator to support importTitle attribute on tm-import-tiddlers
* Update dropzone docs for importTitle attribute
* Updated docs for tm-import-tiddlers
* Fixed formatting
2020-06-27 12:32:11 +01:00
Jeremy Ruston
cf46b6b0ff
Add "class" attribute to dropzone widget
2020-04-03 10:33:39 +01:00
Jeremy Ruston
bc687e5783
Add a hidden setting for disabling the page dropzone
2020-03-15 14:46:33 +00:00
Simon Huber
16bb474fef
Partial fix for the sticky dropzone on firefox ( #3809 )
...
in my tests listening for the dragend event and removing the tc-dragover class in that case removes the `tc-dragover` every time it should ...
without this, firefox often doesn't remove it and the green bar sticks at the top
investigating now if the droppable widget has a similar problem
2019-03-02 16:13:36 +01:00
Jermolene
fbaceaa8bd
Don't steal "paste" events from contenteditable elements
...
Fixes pasting with a WYSIWYG editor
2018-08-20 15:26:41 +01:00
Jermolene
596dfa1d50
Allow manual selection of deserializer for dropping or importing files
2017-07-12 16:42:16 +01:00
Jermolene
04f402b974
Fix drag and drop issue on iOS
2017-04-21 16:27:44 +01:00
Jermolene
eba1c3c160
Improve support for drag and drop
...
Documentation TBD
2017-03-19 19:33:56 +00:00
Jermolene
39cdaeb34d
Fix problem with tracking dragenter/leave events in Firefox
...
Fixes #686 (hopefully!)
2017-03-17 14:54:30 +00:00
Jeremy Ruston
a9b54d6fce
Revert "Add provisional version of new tagger manager"
2016-11-28 10:40:55 +00:00
Jermolene
e98d324e66
Add provisional version of new tagger manager
...
For discussion
2016-11-26 12:48:47 +00:00
Jermolene
c9ab873ba3
Fixes problem with drag and drop in Safari
...
Fixes #1415
The problem was that encodeURI() doesn’t encode slashes, which are not
legal in a data URI, although only Safari was failing. We switch to
encodeURIComponent(), which does encode slashes
2015-02-11 10:07:10 +00:00
Jermolene
1924eda8a9
Improvements for #1483
...
* Rename the global to $tw.dragInProgress for clarity.
* Abort the dragenter so that we don’t get extraneous feedback during
the drag
2015-02-10 23:17:38 +00:00
Tobias Beer
dc23963525
using $tw.dragging to prevent dnd in same window
...
Anything missing?
2015-02-10 23:34:37 +01:00
Tobias Beer
30f2c06c9e
Revert "prevents drag and drop import in same window"
...
This reverts commit 09afa8297a
.
2015-02-10 23:33:19 +01:00
Tobias Beer
09afa8297a
prevents drag and drop import in same window
...
fixes #592
Introduces and preserves **_origin** field when using drag-and-drop —
bad idea? discard? different field name?
demo http://592.tiddlyspot.com
2015-02-09 23:49:04 +01:00
Jermolene
a9eab1b8fc
Improve import logging
2014-11-14 10:33:41 +00:00
Jermolene
78735cde96
Refactor dropzone
...
I want to start figuring out #686
2014-11-11 11:44:00 +00:00
Jermolene
3a67fdb768
Obeisance to JSHint for core modules
...
There are still some warnings about making functions in a loop, but
I’ll fix those as a separate pull request because the fixes are more
than typographic errors.
2014-08-30 20:44:26 +01:00
Jermolene
2f69ea362c
Rename "tw-*" messages to "tm-*"
2014-08-28 21:43:44 +01:00
Jermolene
787481a804
Change more "tw-*" classes to "tc-*"
...
Part of #764
2014-08-28 18:21:08 +01:00
Jermolene
32a1da7673
Fixed problem with pasted items lacking a type
2014-06-22 11:58:00 +01:00
Jermolene
e548dd35af
Restored drag and drop functionality within TEXTAREAs and INPUTs
...
As mentioned by @Skeeve in #592
2014-05-07 14:32:14 +01:00
Jermolene
98872bbe7c
Allow pasting/dropping of HTML content
...
Fixes #477
2014-03-09 20:39:03 +00:00
Jermolene
69c0b5e031
Fix problem with pasting items into the browser
2014-02-14 20:00:23 +00:00
Jermolene
f4b27b33de
Fixed problem with multiple tiddlers created from dragging a single file
2014-01-24 14:09:06 +00:00
Jermolene
12b4cc5d3e
Update wiki.readFiles() to call the callback just once
...
Now we accumulate the results and just pass them to the callback once.
2013-12-23 08:55:11 +00:00
Jermolene
74fd683a22
Clean up indenting
2013-12-21 20:56:19 +00:00
David Jade
7f5a8fc937
Better drag/drop for Firefox/Chrome and improved IE support
2013-12-20 19:57:05 -08:00
Jermolene
066a4d9fbc
Coding style and layout tweaks
2013-12-17 13:32:15 +00:00
David Jade
0984e9322f
Revised fix for IE drag/drop issue #252
...
Also improve browser drag/drop inter-op a tiny bit
2013-12-13 03:12:56 -08:00
David Jade
80e0714c0d
Fix for IE drag/drop issue #252
2013-12-12 17:32:06 -08:00
Jermolene
c4e6c91986
Fix problem with dragging images within TW5
...
Dragging an image within the same TW5 window was causing a crash
2013-11-20 22:52:48 +00:00
Jermolene
6f1c9d88cc
Improve the Widget.prototype.removeChildDomNodes() method so that most subclasses won't need to override it
2013-11-09 16:55:14 +00:00
Jeremy Ruston
b7cb1d3391
Change new_widget
to widget
...
I was avoiding doing this until after the merge.
2013-11-08 08:47:00 +00:00
Jeremy Ruston
3e3a5917b7
Move the widgets back to the right folder
2013-11-08 08:38:44 +00:00