github sveltia/sveltia-cms v0.222.0

latest releases: v0.268.0, v0.267.1, v0.267.0...
one month ago
  • The DateTime field’s new auto_now option sets the field to the current date and time when an entry is saved. Use auto_now: [create] to record when an entry was created and auto_now: true to record when it was last modified, such as Hugo’s date and lastmod front matter fields. Unlike default: '{{now}}', which fills in the time when a new draft is created, the value is set when you save. The field is read-only and isn’t shown until the entry has been saved. This effectively solves decaporg/decap-cms#7473. (#880)
  • The RichText/Markdown field’s raw mode is now much easier to use:
    • The Markdown is syntax highlighted, including the code in fenced code blocks. (#1018)
    • The toolbar buttons now work too. The formatting buttons wrap the selected text in Markdown syntax, the link button opens a dialog, and the block type selector turns lines into headings, lists, a quote or a code block. Ctrl+B/Command+B, Ctrl+I/Command+I and the new Ctrl+K/Command+K link shortcut work in both modes.
    • Editor components, including custom ones, can also be inserted. (UPDATE: The build-in image component doesn’t work — fixed in v0.222.1)
    • This effectively solves decaporg/decap-cms#105, decaporg/decap-cms#245, decaporg/decap-cms#909, decaporg/decap-cms#4611 and decaporg/decap-cms#6497.
  • The Content Editor’s 3-dot menus now include Restore Default and Clear next to Revert Changes, so you can start over with a field, a locale or the whole entry. Restore Default puts back the values a new entry would have, and Clear empties the values. List, Object and KeyValue fields have the options too. The pane and editor menus ask you to confirm first, since they change many fields at once. See Revert, Restore and Clear for details. (#1022)
  • A List field with max: 1, a common way to store a single object in an array, now looks like an Object field, with no item count or list controls. If the field is required, the item is already there, so you don’t have to add it first. (#1021)
  • KeyValue field improvements:
    • Pairs can be reordered with a drag handle, and they’re saved in the new order. With i18n: duplicate, the other locales follow the default locale’s order. (#1020)
    • The new label_singular option sets the label on the Add button, just like the List field.
    • An empty field shows a blank row to type in, just like a simple List field. An empty field is saved as an empty object, whether or not its editor was opened.
  • The subfields of a List or Object field using i18n: duplicate are now shown read-only in the other locales instead of being left out.
  • Bug fixes and improvements.

Full Changelog: v0.221.8...v0.222.0

Don't miss a new sveltia-cms release

NewReleases is sending notifications on new releases.