Jermolene
06ea4060cb
LinkWidget: Add support for tv-filter-export-link
...
This change makes it possible to perform the conversion from target
tiddler title to `href` value as a filter expression (previously a
JavaScript macro was needed to use the tv-get-export-link variable)
2017-08-28 11:06:21 +01:00
Jermolene
8293a77c6e
Add "mode" attribute to View widget
...
Useful for controlling how the content is parsed
2017-08-24 20:58:08 +01:00
Jermolene
a4d919f45c
Extend browse widget with deserializer attribute
...
Along the same lines as 596dfa1d50
2017-07-18 15:32:50 +01:00
Jermolene
5dd3d97760
Extend the set widget with tiddler, field and index attributes
2017-07-12 16:59:56 +01:00
Jermolene
596dfa1d50
Allow manual selection of deserializer for dropping or importing files
2017-07-12 16:42:16 +01:00
Jermolene
95ef1c4580
Fix linkcatcher recursion problem
...
Using action-navigate within the “actions” attribute of the linkcatcher
widget would otherwise trigger the navigation handler recursively.
2017-07-10 14:43:43 +01:00
Jermolene
dc295b2536
LinkCatcherWidget: Add variable containing target tiddler
2017-07-07 12:16:14 +01:00
Rob Hoelz
847727146e
Fix issue 2850 ( #2852 )
...
* Trim tiddler titles imported via JSON
Otherwise, it's possible to create a tiddler with a trailing space (or a
leading one, I suppose) in its title. TiddlyWiki, in general, trims
titles before operating on a tiddler, so having a tiddler with a
trailing space ends up making that tiddler, for all intents and
purposes, uneditable.
Fixes GH #2850
* Signing the CLA
2017-06-29 17:07:23 +01:00
saqimtiaz
48e0186ba9
Added th-editing-tiddler hook in handleEditTiddlerEvent. A plugin can use the hook to return false and prevent editing or provide alternative editing options. ( #2901 )
2017-06-29 08:55:43 +01:00
Jermolene
2d0ac7245f
Docs and tweaks for #2904
...
@saqimtiaz I added a dash to separate the words in the variable names
for consistency with other core variables.
2017-06-29 08:47:26 +01:00
saqimtiaz
5d74513a97
Navigator now sets variables for the story list and history list, that are available to child widgets. Needed in a mutiple-story tiddlywiki. ( #2904 )
2017-06-29 08:36:20 +01:00
saqimtiaz
d89010752a
Modified handleClickEvent to send original event data with tm-navigate event. Fixes 2889 ( #2900 )
2017-06-14 18:16:13 +01:00
Jermolene
04f402b974
Fix drag and drop issue on iOS
2017-04-21 16:27:44 +01:00
Jermolene
50268d9231
Killer typo
2017-03-29 09:22:51 +01:00
Jermolene
1e106a8f3d
Better handling of dropeffect
2017-03-28 15:09:36 +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
4891732481
Adjust listops widget to only modify tiddler if tags have changed
...
We do this so that we don’t accidentally modify shadow tiddlers when we
drag them to reorder them within their tag parent. Otherwise, moving a
toolbar button like $:/core/ui/Buttons/permaview in the control panel
will override the shadow tiddler.
2017-03-24 09:57:22 +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
Jermolene
9bad99d14e
Draggable: properly stringify tiddler titles
...
Thanks @twMat
2017-03-20 22:01:51 +00:00
Jermolene
eba1c3c160
Improve support for drag and drop
...
Documentation TBD
2017-03-19 19:33:56 +00:00
Jermolene
c2391c5250
Action-deletefield should only update tiddler modified/created if it is changed
2017-03-19 19:30:52 +00:00
Jermolene
39cdaeb34d
Fix problem with tracking dragenter/leave events in Firefox
...
Fixes #686 (hopefully!)
2017-03-17 14:54:30 +00:00
Jermolene
66d5e2650e
Fix problem with dragger image in Chrome
...
Fixes #2800
2017-03-12 18:07:59 +00:00
Jermolene
daf703b67f
Add support for th-navigating
event
2017-02-19 15:47:37 +00:00
Jermolene
2397f0aa6f
Add several new hooks for UI actions
2017-02-09 15:42:55 +00:00
Tobias Beer
1b339e17bc
Add "tag" attribute to keyboard widget ( #2593 )
...
* allows to define the tag for keyboard widget
* added from 5.1.14 to docs
2017-01-13 11:17:19 -07:00
Tobias Beer
e5b432a86b
Allows checkbox widget to worth with indexes within data tiddlers ( #2103 )
2016-12-17 11:59:59 +00:00
Tobias Beer
d6d3aab36a
Allow radio widget to work with indexes in a data tiddler ( #2104 )
...
* allow radio widget to set an index in a data tiddler
* updated RadioWidget docs, with same demo macro as for CheckboxWidget
in #2103
* removed docs in widget code (seems the wrong place)
* added from version to docs
* revert doc maros to master
* using wikitext-example-without-html and .tip macro now
* fix quotes
2016-12-17 11:51:24 +00:00
Jermolene
e8bb897e26
Add support for relinking when renaming tiddlers
...
When renaming an existing tiddler, the edit template now shows a
checkbox that determines whether or not to relink references to the
tiddler in the list or tags fields of other tiddlers.
2016-12-15 17:13:32 +00:00
Jermolene
cf28eeb2a1
Fix problem with checkbox widget and empty strings
...
If the value of `tiddler.fields[this.checkboxField]` was an empty
string then it would incorrectly fall back to the value of
`this.checkboxDefault`.
2016-11-28 13:45:41 +00:00
Jeremy Ruston
a9b54d6fce
Revert "Add provisional version of new tagger manager"
2016-11-28 10:40:55 +00:00
Jermolene
1a2ec12831
Fix problem with checkbox widget and empty strings
...
If the value of `tiddler.fields[this.checkboxField]` was an empty
string then it would incorrectly fall back to the value of
`this.checkboxDefault`.
2016-11-27 14:51:23 +00:00
Jermolene
e98d324e66
Add provisional version of new tagger manager
...
For discussion
2016-11-26 12:48:47 +00:00
Jermolene
3bceb98119
Add support for actions attribute to CheckboxWidget
2016-11-26 08:21:58 +00:00
Jermolene
8d35178bc4
Undo 664225f6fd
and 56640b90bb
...
See the discussion at #2628
2016-10-26 21:41:41 +01:00
Jermolene
664225f6fd
Ensure list widget item title is used in getStateQualifier
...
Resolves a longstanding problem where the same state qualifier is
generated for every member of a list.
Fixes #2628
2016-10-25 15:34:20 +01:00
Jermolene
7108e0d861
Add support for filtered attributes to HTML elements and widgets
...
Fixes #2624
2016-10-21 11:27:07 +01:00
Jermolene
c72a0b7a67
Add action-createtiddler widget
...
Basically the same as sending a tm-new-tiddler message except that the
newly created tiddler is not added to the story.
2016-10-21 11:26:26 +01:00
Jermolene
0b76c327c2
Add page print button
...
cc @silvyn
2016-10-20 09:44:52 +01:00
Jermolene
b35544bf49
Extend set widget to support returning a single result from a filter
...
This solves the problem with extraneous double square brackets when
using the filtered set widget.
2016-10-18 09:16:47 +01:00
Jermolene
d9f301f755
Add 'formattedtext' output type to Wikify widget
2016-10-18 09:13:52 +01:00
Tobias Beer
3486acaec6
Remove old titles from story on save ( #2587 )
...
fix for #2381
2016-10-08 12:17:27 +01:00
Jermolene
641eeaf611
Refresh action widgets before invoking them
...
Fixes #2599 , at least partially.
2016-10-08 10:19:09 +01:00
Jermolene
292d653880
Fix typo affecting created/creator fields when deleting field
...
Fixes #2579
2016-09-28 11:18:58 +01:00
Jermolene
5f0a1dd967
Revision of 03db25cf38
...
We should only fallback to the classic storyview if a storyview was
specified; if none was specified then we shouldn’t use a storyview.
2016-08-27 14:24:07 +01:00
Jermolene
03db25cf38
Fallback to "classic" if specified storyview not found
...
Fixes #2555
2016-08-26 11:34:43 +01:00
Jermolene
08cfa88249
Fix problem with unsafe use of String.prototype.replace()
...
We were using `String.prototype.replace()` without addressing the
wrinkle that dollar signs in the replacement string have special
handling. This caused problems in situations where the replacement
string is derived from user input and contains dollar signs.
Fixes #2517
2016-08-06 14:45:33 +01:00
Myeongjin
98b435d550
Fix inconsistencies in language string IDs ( #2494 )
2016-07-13 10:00:21 +01:00
Jermolene
3d5885f5a5
Extend view widget with plainwikified
format
2016-06-23 16:28:59 +01:00
Myeongjin
6388f859d1
Add localisable strings for error ( #2447 )
...
* Add localisable strings for error
* Update tiddler Transclusion Basic Usage in fr-FR
2016-05-17 21:58:47 +01:00