0.8.0
This version makes the observable trigger properties internal. These properties were never made to be used from the outside, and all have context functions that set them, so use these functions instead.
IMPORTANT
The safeRange
adjustment may lead to crashes, although I haven't been able to make it crash. If so, investigate. If you use the safe range yourself, to access attributes, make sure to set the new attribute parameter to true. It's hopefully temporary.
✨ Features
RichTextContext
has a newattributedString
property.RichTextContext
's paste functions now use the selected range index as default index.
💡 Adjustments
RichTextReader
safeRange
no longer subtracts 1 from the string length.RichTextReader
will now move the cursor after the pasted text, if it's pasted at selected range.RichTextViewComponent
image pasting has been rewritten.RichTextViewComponent
will now clear the selected range when pasting in images using that range.
🐛 Bug Fixes
RichTextReader
safe range fix makes pasting text at the end behave better.RichTextViewComponent
now properly restores the font size after pasting an image.
🗑️ Deprecations
RichTextContext
trigger properties have been made internal.