1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-19 18:59:42 +00:00
TiddlyWiki5/core/ui
FlashSystems e9405ac810
Fix for Bug #6618 (#6628)
* Fix for Bug #6618

This Commit fixes Bug #6618. It is a little bit more complicated than
using one tiddler to store the new value for a field. Because the
following can happen:

* The user types "not-a-date" into the field value of a simple text field.
* The user now selects a field name that uses a HTML5 date editor. The
  Editor will show no date because the value cannot be parsed.
* The user saves the tiddler by clicking the checkmark.

Now the date-field contains the value "not-a-date" but the user was not
aware that this will be added. The edit control showed no date (because
the value was invalid) and the user assumed the field was empty and
won't be added to the tiddler.

To prevent this, every kind of field editor gets its own storage tiddler.
Its name is derived from the SHA256-hash of the name of the tiddler that
is returned by the Field Editor Cascade. That way every editor in the
cascade is only seeing its input. As long as the default setup (with one
default editor) is used, everything works like in 5.2.1.

This commit also fixes the bug that the after adding a field the
field-type input box was not focused again.

* Update Documentation for Field Editor Cascade

The fix for bug #6618 makes the handling of the tiddler backing the edit
operation much more complicated. See previous commit "Fix for Bug #6618"
for more details.
2022-05-14 13:30:04 +01:00
..
AboveStory Fix tw2-plugin-check warning so that more than one plugin is displayed 2016-09-30 18:27:45 +01:00
Actions Trim Saga: Advanced Search and actions (#6604) 2022-04-16 17:40:27 +01:00
AdvancedSearch Trim Saga: Advanced Search and actions (#6604) 2022-04-16 17:40:27 +01:00
Components Trim Saga: Advanced Search and actions (#6604) 2022-04-16 17:40:27 +01:00
ControlPanel Trim Saga: Control panel and Editor Toolbar (#6600) 2022-04-06 08:27:05 +01:00
EditorToolbar Trim Saga: Control panel and Editor Toolbar (#6600) 2022-04-06 08:27:05 +01:00
EditTemplate Fix for Bug #6618 (#6628) 2022-05-14 13:30:04 +01:00
EditToolbar Add whitespace trims to EditToolbar Buttons (#5076) 2020-11-19 16:37:36 +00:00
Filters Add advanced search canned filter for "tiddlers modified this session" 2019-02-08 11:07:06 +00:00
ImportPreviews Trim Saga: All snippets, language tiddlers, and typed (#6275) 2022-04-01 12:10:29 +01:00
KeyboardShortcuts Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
Manager Trim Saga: I think this is the last batch (#6611) 2022-04-16 17:19:05 +01:00
MoreSideBar Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
PageControls ControlPanel Button: use tv-story-list variable (#6562) 2022-03-27 08:54:33 +01:00
PageTemplate Add "cascade" filter run prefix and use it to control view templates (#6168) 2021-11-15 21:06:47 +00:00
SideBar Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
SideBarSegments Make editTiddler in sidebarsegments/search available as variable (#5218) 2020-12-06 17:15:40 +00:00
TiddlerInfo Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
TopRightBar Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
ViewTemplate Fix title indentation problem (#6679) 2022-05-09 15:49:42 +01:00
ViewToolbar Trim Saga: Making existing trim tiddlers consistent (#6272) 2022-03-26 15:18:42 +00:00
AdvancedSearch.tid Trim Saga: I think this is the last batch (#6611) 2022-04-16 17:19:05 +01:00
AlertTemplate.tid Trim Saga: Advanced Search and actions (#6604) 2022-04-16 17:40:27 +01:00
BinaryWarning.tid Add download button/link to binary tiddler warning banners in view and edit mode (#4423) 2020-01-31 09:13:28 +00:00
ControlPanel.tid Trim Saga: I think this is the last batch (#6611) 2022-04-16 17:19:05 +01:00
DefaultSearchResultList.tid Trim Saga: Control panel and Editor Toolbar (#6600) 2022-04-06 08:27:05 +01:00
EditTemplate.tid Fix for Bug #6618 (#6628) 2022-05-14 13:30:04 +01:00
ExportTiddlyWikiCore.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
ImportListing.tid Trim Saga: whitespace trimming three big tiddlers (#6265) 2022-04-01 12:09:30 +01:00
LayoutSwitcher.tid Trim Saga: All snippets, language tiddlers, and typed (#6275) 2022-04-01 12:10:29 +01:00
ListItemTemplate.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
ListTaggedCascade.tid Trim Saga: All snippets, language tiddlers, and typed (#6275) 2022-04-01 12:10:29 +01:00
Manager.tid Trim Saga: whitespace trimming three big tiddlers (#6265) 2022-04-01 12:09:30 +01:00
MissingTemplate.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
PageControls.tid Fix currentTiddler in pagecontrol buttons 2019-10-03 12:13:29 +01:00
PageStylesheet.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
PageTemplate.tid Add Switcher modal (#5089) 2020-11-23 17:06:24 +00:00
PaletteManager.tid Trim Saga: Making existing trim tiddlers consistent (#6272) 2022-03-26 15:18:42 +00:00
PluginInfo.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
PluginInfoDefaultContents.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
PluginListItemTemplate.tid Improve sidebar plugin listing 2021-12-07 13:17:15 +00:00
RootTemplate.tid Ensure root template contents is parsed in block mode 2020-11-09 17:08:34 +00:00
SearchResults.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
SideBarLists.tid Modularize the sidebar 2018-08-02 13:22:21 +01:00
StoryTiddlerTemplate.tid Cascades: Ignore draft configuration tiddlers 2021-12-06 16:25:51 +00:00
SwitcherModal.tid Add Switcher modal (#5089) 2020-11-23 17:06:24 +00:00
TagManager.tid Add "none" as an option in the icon dropdown in tag manager (#4361) 2020-01-30 15:52:33 +00:00
TagPickerTagTemplate.tid Cascades: Ignore draft configuration tiddlers 2021-12-06 16:25:51 +00:00
TagTemplate.tid Cascades: Ignore draft configuration tiddlers 2021-12-06 16:25:51 +00:00
TiddlerFields.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
TiddlerFieldTemplate.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
TiddlerIcon.tid Cascades: Ignore draft configuration tiddlers 2021-12-06 16:25:51 +00:00
TiddlerInfo.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
UntaggedTemplate.tid Another batch of whitespace trims (#6587) 2022-04-05 16:48:07 +01:00
ViewTemplate.tid Update view template to use whitespace trim 2021-10-02 17:22:10 +01:00