Repository navigation
v0.2.1
Patch Changes
-
#31
2a8444aThanks @kriss145! - The rich text editor gains Markdown shortcuts, a Markdown view and a drag handle, and each of its tools is a feature a field can leave out.Behaviour changes - read before upgrading
- A field whose
featuresis a list of its own shows no full-screen button until the list holdsFullScreenFeature(). A field on the defaults, or with a function ofdefaultFeaturesorrootFeatures, keeps it.
Features
MarkdownShortcutsFeature()- Markdown typed or pasted, such as##,-or**bold**, turns into what the field's features allow. On by default.DragHandleFeature()- a paragraph, heading, list or quote moves above or below another by the handle beside it. On by default.FullScreenFeature()- the button that opens the editor over the whole Admin. On by default.MarkdownViewFeature()- the field edited as Markdown from the editor's Actions menu, and saved as the same document. Underline, subscript and superscript lose their format when the view opens, and undo brings it back. Off by default.RichTextFeatureKeyhas the keysmarkdownShortcuts,dragHandle,fullScreenandmarkdownView, which an exhaustiveswitchhandles.
- A field whose
-
#34
9c45ac5Thanks @kriss145! - A rich text field can hold horizontal rules, whichHorizontalRuleFeature()turns on.Features
HorizontalRuleFeature()- a toolbar button inserts a rule between blocks, and---alone on a line makes one. Off by default.- The renderers write a rule as
<hr>, under the component keyhorizontalRule. RichTextFeatureKeyhas the keyhorizontalRule, which an exhaustiveswitchhandles.