1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-19 18:59:42 +00:00
Commit Graph

2928 Commits

Author SHA1 Message Date
Jermolene
f846a004b6 Partial fix for copyStyles problem under Chrome
There’s still a problem: in Chrome, the styling of the textarea
placeholder isn’t correct.
2016-05-17 15:45:10 -06:00
Jermolene
682b1e7027 Fix sandbox attribute for html parser generated iframes
See
https://developer.mozilla.org/en/docs/Web/HTML/Element/iframe#attr-sandb
ox
2016-05-17 15:45:10 -06: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
Myeongjin
8afc1e9354 Add localisable strings (#2438)
* Add localisable string for recursive transclusion error

* Add localisable string for count

* Add localisable strings for syncer
2016-05-12 08:44:28 -06:00
nameanyone
2a4a3d9fe9 Replace spaces with margins in editor toolbar (#2429) (#2435) 2016-05-11 11:09:54 -06:00
Jermolene
7598832e01 Minor fix to preview-closed icon 2016-05-09 14:41:13 -06:00
Jermolene
e54cc7b211 Fix copyStyles() not working in Firefox
Yet more browser incompatibilities to weep over…
2016-05-09 14:11:08 -06:00
Jermolene
c8777ea012 Add control panel setting for disabling the new editor toolbar 2016-05-09 10:33:15 -06:00
nameanyone
848a65d840 Remove space character between Cancel and Save buttons (#2428) 2016-05-09 09:52:27 -06:00
Mario Pietsch
79ee3b5a3b new german text elements (#2426)
* new german text elements

* Theme-Tweaks first take.
2016-05-08 14:50:09 -06:00
Jermolene
3a3754aebb Add rel="noopener noreferrer" to external links
Background:
https://medium.com/@jitbit/target-blank-the-most-underestimated-vulnerab
ility-ever-96e328301f4c#.hduwdbjlb
2016-05-05 11:49:40 +01:00
Myeongjin
71111550d6 Add localisable strings for vanilla (#2422)
* Add localisable strings for vanilla

* Remove system tiddler for theme tweaks from fr-FR edition
2016-05-05 10:11:06 +01:00
Jermolene
854a9a3b75 Refine behaviour of heading formatting toolbar buttons
Previous behaviour was that the H1 button on `!!! x` gave us `!! x`
2016-05-05 07:54:32 +01:00
Jermolene
e3415796b2 Fix problem with lazy loading images
Fixes @2263

Thanks @buggyj
2016-05-02 10:29:26 +01:00
Jermolene
a11a4de6af Fix problem with editing missing tiddlers
Fixes #2412
2016-05-02 10:12:08 +01:00
Jermolene
54bf6c8a93 Fix table of contents issue with tiddler titles containing single quotes 2016-05-02 08:20:04 +01:00
Jermolene
cdeca55d45 Fix another IE11 problem
IE11 doesn’t support String.prototype.repeat
2016-05-01 18:17:47 +01:00
Jermolene
01eb45946c Fix problem with IE11
It turns out that IE11 has a horrible bug whereby setting the
placeholder attribute before setting the text will trigger an input
event:

https://social.msdn.microsoft.com/Forums/ie/en-US/ae4832b0-8eee-4729-b93
3-a9977ea1b583/internet-explorer-input-event-get-fired-when-settingunset
ting-the-placeholder?forum=iewebdevelopment
2016-05-01 18:17:28 +01:00
Jermolene
c5a1e105d5 Remove quotes from bad title character warning
Experience shows that both double and single quotes are OK
2016-05-01 13:56:41 +01:00
Jermolene
6dce8d9763 Remove final vestiges of undo/redo buttons 2016-05-01 13:54:16 +01:00
Jermolene
72fb1e22ed Remove undo/redo formatting toolbar buttons
There have been long standing problems with the buttons not working in
Firefox, and now a [further
problem](https://groups.google.com/d/msg/tiddlywiki/GlsruQyPOag/BAhnI2mt
BgAJ) has come to light, and been similarly hard to resolve.

On balance, I’ve decided to remove the undo/redo buttons from the
toolbar (the ctrl/cmd-Z shortcut is still operational), thus avoiding
the problems, and saving some space in the core.
2016-05-01 13:51:45 +01:00
Jermolene
1515fd42ed Fix text editor for Internet Explorer
By switching from text events to execCommand.
2016-04-30 14:36:53 +01:00
Jermolene
752a126cc4 Fix premature commit of link button
Whoops
2016-04-29 19:19:18 +01:00
Jermolene
7224fea961 Introduce "link" editor toolbar button
As proposed by Alex Hough
2016-04-29 18:54:44 +01:00
Jermolene
b1fb1070ef Enhance linkcatcher widget to use actions attribute 2016-04-29 18:54:44 +01:00
Jermolene
3c20f2396e Add support for assigning action widgets via the actions attribute
This is quite a big change: a new way to invoke action widgets.

The advantage is that it solves #2217 and #1564, a long running problem
that prevented us from adding action widgets to widgets that modify the
store.

This commit adds the new technique for the button and keyboard widgets,
but also extends the select widget to trigger action widgets for the
first time
2016-04-29 18:54:44 +01:00
Jermolene
b53f4e9b20 Remove another extraneous mode field
Missed off 987c876cfaa8f0d8050c687c26adee250fa0062d
2016-04-29 18:54:44 +01:00
Jermolene
3156d3d7ce Add spacers to formatting toolbar 2016-04-29 18:54:44 +01:00
Jermolene
39f0c19c9a Allow "yes" as a synonym of "true"
For consistency
2016-04-29 18:54:44 +01:00
Jermolene
7d0ac4f86e Remove extraneous "mode" field from snippet tiddlers 2016-04-29 18:54:44 +01:00
nameanyone
19ee5bcf4e "days" filter: yesterday and tomorrow edge cases (#2364)
* Change the negation logic to address an edge case

Make it possible to get an interval ending with yesterday or starting with tomorrow.

* "days" filter: adjust documentation
2016-04-27 17:23:46 +01:00
Jermolene
6f6cdc1bd0 Fix problem with formatting toolbar dropdowns
Cruft left over from the last big refactoring…
2016-04-26 07:43:13 +01:00
nome
1ae428e323 Make tiddler file paths configurable (#2379)
When saving new tiddlers on node.js, allow the user to override the path of the
generated .tid file. This is done by creating a tiddler
$:/config/FileSystemPaths which contains one or more filter expressions, one
per line. These filters are applied in turn to the tiddler to be saved, and
the first output produced is taken as a logical path relative to the wiki's
tiddlers directory. Any occurences of "/" in the logical path are replaced with
the platform's path separator, the extension ".tid" is appended, illegal
characters are replaced by "_" and the path is disambiguated (if necessary) in
order to arrive at the final tiddler file path. If none of the filters matches,
or the configuration tiddler does not exist, fall back to the previous file
naming scheme (i.e. replacing "/" by "_").

This implies we will now, for tiddlers matching the user-specified filters,
create directory trees below the tiddlers directory. In order to avoid
cluttering it with empty directory trees when renaming or removing tiddlers, any
directories that become empty by deleting a tiddler file are removed
(recursively).

Benefits of this configuration option include the ability to organize git
repositories of TiddlyWikis running on node.js, ability to replace characters
that cause trouble with particular operating systems or workflows (e.g. '$' on
unix) and the ability to replicate tiddler "paths" in the filesystem (by
including a filter like "[!has[draft.of]]") without forcing such a (potentially
problematic) change on all users.
2016-04-25 08:36:32 +01:00
Jermolene
0bd79694f2 Change the keyboard shortcut for the preview pane
ctrl-P clashes with the system default for “Print” on Windows (and
Linux?)
2016-04-24 13:31:04 +01:00
Evolena
2b1d38d3ca Add a subfilter parameter to image-picker macro (#2391)
* Documentation and examples
* Fix the tag of image- and colour-picker macros in documentation
2016-04-24 13:27:32 +01:00
Jermolene
b7530bac44 Ensure iframe textarea styles are updated
Previously, changing the palette didn’t update the textarea styles.
2016-04-24 12:30:44 +01:00
Jermolene
ba8c4dca98 Fix minor glitch with the file icon 2016-04-24 12:08:42 +01:00
Jermolene
3e9cc3e8fd Add a warning for undo/redo buttons in Firefox 2016-04-24 09:32:06 +01:00
Jermolene
3b49cd17fc Fixes from @Infurnoape 2016-04-23 17:23:14 +01:00
Jermolene
f68bdce7a8 Add the new toolbar icons back 2016-04-22 08:39:08 +01:00
Jeremy Ruston
2adf09129d Introduce text editor toolbar (#2315)
Tada!
2016-04-22 08:36:29 +01:00
Jermolene
4dd701c2dd Fix problem with missing link logic
See
https://github.com/Jermolene/TiddlyWiki5/commit/7908e10488cc4280dd8e4f40
5bcb09f2fb6d3524#commitcomment-17174321
2016-04-20 11:57:38 +01:00
Jermolene
a38d133d6e Move text editor images into master
There’s currently 249 changed files in the text-editor branch, which
exceeds github.com’s ability to display the diffs. So we’ll put the
images straight into master to get the diffs down by 32 files.
2016-04-19 08:30:04 +01:00
Jermolene
1e0d019610 Don't repeatedly lazy load the same tiddler
If we don’t get a “text” field back the first time we shouldn’t keep
asking for it.
2016-04-18 14:50:13 +01:00
Myeongjin
e6e346ea29 change string 'Close' to lowercase for dialog (#2366) 2016-04-14 23:03:14 +01:00
Devin Weaver
bea6d741e3 Reword makedatauri.js description (#2373)
Closes issue #2372
2016-04-14 23:02:40 +01:00
Devin Weaver
7908e10488 Add option to disable linking to missing tiddlers
* Add LinkWidget option to ignore missing tiddlers
* Add missing link option to settings
2016-04-04 12:43:40 +01:00
Myeongjin
fb381b452a add localisable strings for plugin library
'define lingo-base()' is don't need in dialog 'get more plugins'.
2016-03-31 23:26:27 +09:00
Bram Chen
148fd8d15b Fix pattern for bad characters when editing tiddler titles
It looks like missing a character ' in pattern
2016-03-31 20:40:58 +08:00
Jermolene
12661f5cda Add warning for bad characters when editing tiddler titles
Fixes #2351
2016-03-31 11:14:18 +01:00
Myeongjin
c9b0e15201 add localisable strings for dialog 2016-03-28 16:24:55 +09:00
Myeongjin
034796bee6 add localisable string for plugin configure 2016-03-28 16:24:47 +09:00
webninjasi
47d518d6d4 Fix invalid header in upload plugin 2016-03-03 19:08:24 +02:00
Jermolene
5f6a53eae1 Fix typo from 4a03dcab20 2016-02-20 21:44:52 +00:00
Jeremy Ruston
35fe5a5fc3 Merge pull request #2294 from mklauber/patch-2
Update has.js for improvement to #2274
2016-02-20 21:43:58 +00:00
Matt Lauber
899c5cb835 Update has.js 2016-02-18 11:51:29 -05:00
Jermolene
4a03dcab20 Fix problem with double-byte Unicode entities
Entities such as `👷` were broken because
`String.fromCharCode()` is not fully Unicode aware. The fix is to use
`String.fromCodePoint()` where available.

Noted by @ericshulman
2016-02-18 13:49:09 +00:00
Eric Drechsel
60d585f7d5 putSaver: probe for server support on startup
save fails until probe succeeds,
allowing other saver methods to take over

Follow up to #2288, #2277
2016-02-16 10:53:15 -08:00
Jeremy Ruston
1f4df88960 Merge pull request #2284 from mklauber/patch-2
Fix for #2274
2016-02-16 16:37:46 +00:00
Matt Lauber
5a14b37686 Update to check if empty sting OR (is array AND is empty) 2016-02-16 08:08:09 -05:00
Eric Drechsel
dd43759ecc putSaver: return null on save success, TODOs 2016-02-15 15:20:30 -08:00
Jeremy Ruston
2203c2b38a Merge pull request #2277 from edrex/put_saver
add a simple put saver, for saving to a webdav or REST server
2016-02-15 22:00:46 +00:00
Matt Lauber
22145e2e51 Fix for #2274
List fields (such as tags) when evaluated to produce tiddlers result in empty arrays.  Using the exact not equals, an empty array is not the same as an empty string.  By using equivelent not equals, we state that the field is either != "" or anything that can be coerced to "".  Which, based on https://dorey.github.io/JavaScript-Equality-Table/ is `false` `0` `[]` or `[[]]`` neither `false` nor `0` can be set as a tiddler field as both will end up being quoted (`"false"`, `"0"`) so this should work.
2016-02-15 08:31:23 -05:00
Jermolene
7daebba46b Make edit preview pane extensible
Additional preview panes are tagged “$:/tags/EditPreview“. A dropdown
is shown if there is more than one edit preview loaded.
2016-02-15 11:38:21 +00:00
Jermolene
df3e39d97a Update wikiparser file comment 2016-02-15 11:33:47 +00:00
Jeremy Ruston
dd9fc6a51e Merge pull request #2265 from felixhayashi/fix/icon
fixed malformatted svg
2016-02-11 09:48:43 +00:00
Jeremy Ruston
581634d282 Merge pull request #2164 from pmario/issue-2158
Issue 2158 - check for new draft fields and warn if cancel is clicked
2016-02-11 09:31:58 +00:00
Eric Drechsel
f8565443d7 add a simple put saver, for saving to a webdav or REST server 2016-02-08 13:40:10 -08:00
Jermolene
adf45b3468 Add a bulk delete button
I needed this in my day job, but think we need to do better on bulk
operations
2016-02-05 18:44:43 +00:00
Jermolene
8bc0633b6f Refactor AdvancedSearch/Filter to make buttons extensible 2016-02-05 18:43:52 +00:00
Felix Hayashi
b83556b5ad fixed malformatted svg
one `</g>` too much.
2016-02-02 17:35:22 +01:00
Jermolene
f61bb316b2 Adjust version number for 5.1.12 2016-01-31 21:46:29 +00:00
Jermolene
d240ab5003 Fix broken plugin library
Fixes #2260
2016-01-29 17:16:16 +00:00
Jermolene
334497ce4e Move "get more plugins" button into a transcludable tiddler 2016-01-07 23:00:29 +00:00
Jermolene
64efee40e5 Retracting #2147
The problem is that this change scrambles the ordering of tabs that use
programmatic ordering, for example here:

https://github.com/Jermolene/TiddlyWiki5/blob/master/editions/tw5.com/ti
ddlers/releasenotes/TiddlyWiki_Releases.tid#L13
2016-01-07 16:48:51 +00:00
Jermolene
0747635fba Fixed current tiddler overwrite in tabs macro
Fixed a side-effect of 03519c14b0 from
@matabele whereby the current tiddler is overwritten by the
`<$tiddler>` widget, which means that it is not accessible when
rendering the caption of the tab.

This causes a problem with eg the “Add Plugins” modal where it breaks
the count on the tabs.
2016-01-07 12:40:10 +00:00
Jermolene
b873df0ba2 Revert "Merge pull request #2166 from matabele/patch-5"
This reverts commit 83c54f4bb5, reversing
changes made to 0cbe97615a.
2016-01-06 09:38:39 +00:00
Jeremy Ruston
83c54f4bb5 Merge pull request #2166 from matabele/patch-5
Fix inadvertent clearing of text field (default) when `field` attribu…
2016-01-05 19:10:26 +00:00
Jermolene
0cbe97615a Add size attribute to select widget for multiple selection mode 2016-01-05 18:48:21 +00:00
Jermolene
93f7d8c028 Fix bug with tiddler widget and a blank tiddler title 2016-01-05 18:48:04 +00:00
Jeremy Ruston
31b4f104e4 Merge pull request #2161 from matabele/patch-3
Tidied up the code in the x-listops filters
2016-01-05 15:30:39 +00:00
Jeremy Ruston
2cd812c15f Merge pull request #2160 from matabele/patch-2
Changed the name of the 'list' attribute to 'field' for the $action-listops widget
2016-01-05 13:06:48 +00:00
Jeremy Ruston
114f4dbcea Merge pull request #2171 from nameanyone/tw5-htabs-spaces
Replace spaces between horizontal tabs with margin
2016-01-05 12:58:04 +00:00
Jeremy Ruston
791f97983e Merge pull request #2153 from tobibeer/rows-for-edittext
add rows attribute to edittext, plus docs
2016-01-05 12:31:37 +00:00
Jermolene
0240a8048f Fix default date format 2016-01-04 20:09:06 +00:00
Jermolene
5cc1f2b313 Fix problem with search popup disappearing
This one took quite a lot of tracking down…

Fixes #2172
2016-01-03 18:05:08 +00:00
Jermolene
665d6657bb It's 2016!
🎉🎊🎆
2016-01-03 18:04:21 +00:00
William Jackson
ac8b706d42 Correct Formatting
Removed extra tab spacing and corrected syntax error
2016-01-03 16:30:00 +02:00
Jeremy Ruston
f2591761b0 Merge pull request #2169 from nameanyone/tw5-fold-button-spaces
Remove spaces around the fold button
2015-12-31 09:17:12 +00:00
nameanyone
49c6a172ad Get rid of newline at eof. 2015-12-30 16:57:49 -08:00
nameanyone
bd9cd10de1 Remove the trailing space as well, missed that. 2015-12-30 15:38:35 -08:00
Jermolene
e3f381ed8d Remove extraneous whitespace between tag pills
Fixes #2170
2015-12-29 15:21:53 +00:00
nameanyone
747eb9daba Remove spaces between horizontal tabs 2015-12-29 00:02:19 -08:00
nameanyone
7fbe29fd04 Remove spaces around the fold button
...by removing newlines betwen widgets. Makes source harder to read but eliminates space characters from the end result.
2015-12-28 22:28:48 -08:00
William Jackson
a44edee782 Changed indents from spaces to tabs
I am informed this is the correct convention for TW5.
2015-12-28 18:12:22 +02:00
William Jackson
471f28e52b Fix inadvertent clearing of text field (default) when field attribute of the ActionSetField widget isn't set.
When using the widget with only short form SetText attributes (field="value) -- the default field (text) of the default tiddler is set to the default value ("") -- thus clearing the text field of the current tiddler. I have inserted a conditional to test for the presence of the `field` attribute.

Whilst I was about this, I have inserted code to enable the setting of any number of TextReferences -- this fixes the issue of only being able to set one index per widget and also allows different tiddlers to be targeted by the same widget.
2015-12-28 18:08:05 +02:00
Mario Pietsch
3977cf009b fixes #2158 check if new fields are present and warn on cancel 2015-12-28 11:31:36 +01:00
Mario Pietsch
7c4ea64210 fixes #2158 check if new fields are present and warn on cancel 2015-12-28 11:29:43 +01:00
William Jackson
48987e186a Tidied up the code in the filters 2015-12-28 10:31:39 +02:00
William Jackson
2f51c3695d Changed the name of the 'list' attribute to 'field'
Other users found this to be confusing -- I have made this change in both this widget and the $checklist widget to maintain consistency
2015-12-28 10:22:28 +02:00