[SuperEditor] Add Valued Attribution support in SuperEditor (ColorAttribution, SizeAttribution, etc...) #1983
Labels
area_attributed_text
Related to attributed_text
area_super_reader
Related to SuperReader
area_supereditor
Pertains to SuperEditor
area_supertextfield
Pertains to SuperTextField
bounty_junior
f:superlist
Funded by Superlist
time:2
type_enhancement
New feature or request
Hello, I write this issue as Feature, tell me if It's supported or not because I'm not able to find this behavior in Demo.
User Behavior
As a User, I use DemoEditor
I would like to change some text color from Selection or just from Cursor.
I use
ToggleTextAttributionsRequest
.In some case, the Command cannot be applied du to 'canMerge' of ColorAttribute
Ex:
[color A]All my text is colored into A color[/color A]
If I decide to color any word between beacons: ERROR
Feature Value
When an attribution is associated with value Editor cannot split attribution or manage them to apply the new one if already the same Attribution is applied.
With this feature, editor will be able to use Attribution with value by applying attribution on some TextNode portions an not only paragraph.
Ex 1:
[color A]All my text is colored into A color[/color A]
If I decide to color any word between beacons:
[color A]All my text is [/color A][color B]colored[/color B] [color A]into A color[/color A]
Ex 2:
Only the word [color A]color[/color A] is colored in A color
If I decide to color all the sentence with B color:
[color B]Only the word color is colored in A color[/color B]
The behavior targeted is the same as a classic editor
This behavior can be the same with SizeAttribution for text size, Hightlight, FontFamily etc...
Additional context
If you need more, code example or else don't hesitate to ask for.
The text was updated successfully, but these errors were encountered: