Version 1.4.5 - 2016-09-22
- Autosave (optional) of every YAKME-field.
- Number of keystrokes are shown in the status-area.
- Minor fixes and tunes.
Config
By default, no config
is needed. But you can set the styling / height of the YAKME-field and perform an image-check;
c::set('yakme_height', 0);
This will set an “auto-height” for every field; the more the content, the larger the field.
c::set('yakme_height', 480);
This will set a “fixed-height” for every field; the size is in pixels and when the content becomes to large, a scrollbar will appear.
The settings defaults to 320px - so that’s used when no settings are available.
c::set('yakme_images', 0);
Markdown-images will not be checked for validity, when rendered in the live-preview.
c::set('yakme_images', 1);
A check will be performed when previewing markdown-images. When an images does not exist, a error-sign is showed.
Please note, Kirby image-tags can not (yet) be validated.
c::set('yakme_autosave', 1);
Autosave
the text (while uploading / removing files) or not.
The text is saved in the browser-memory (not on the server or local storage) when autosaving is set to 1.
If you don’t want to autosave the text, set this preference to 0.
Please remember; don’t rely 100% on autosave - when you really leave the page (or reload the tab) the autosaved text is gone (sometimes Kirby itself will try to restore it, but again; don’t count on it).
Autosave
works fine when editing the textfield, uploading / removing files, etc… But when you have a lot of edited text, it’s always better to press save
yourself (and make backups).