TiddlyWiki5/core/ui/EditTemplate
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
..
Preview Add support for $:/tags/Macro/View/Body macros 2022-05-05 08:30:05 +01:00
body Trim Saga: Edit and View templates (#6276) 2022-03-26 14:16:01 +00:00
body-editor.tid Trim Saga: Edit and View templates (#6276) 2022-03-26 14:16:01 +00:00
body-toolbar-button.tid Add support for disabled editor toolbar buttons & docs (#5294) 2021-04-25 16:17:32 +01:00
body.tid Cascades: Ignore draft configuration tiddlers 2021-12-06 16:25:51 +00:00
controls.tid Trim Saga: Edit and View templates (#6276) 2022-03-26 14:16:01 +00:00
fieldEditor-default.tid Fix for Bug #6618 (#6628) 2022-05-14 13:30:04 +01:00
fields.tid Fix for Bug #6618 (#6628) 2022-05-14 13:30:04 +01:00
shadow.tid Trim Saga: Edit and View templates (#6276) 2022-03-26 14:16:01 +00:00
tags.tid Cascades: Ignore draft configuration tiddlers 2021-12-06 16:25:51 +00:00
title.tid Trim Saga: Edit and View templates (#6276) 2022-03-26 14:16:01 +00:00
type.tid Edit type dropdown: Add whitespace between description and MIME type 2021-12-08 21:25:44 +00:00