Skip to main content
Question

Component properties to mimic span style

  • July 4, 2023
  • 2 replies
  • 559 views

Elliot_George

I’m creating a component which reads like a single short sentence with part of the sentence in bold and in a different colour. Each part of the sentence should be editable.

For example:

I would love for component properties to preserve text styles and wrap like fluid text.

I’ve tried achieving this using the new wrap feature, but this leaves gaps. Essentially, I’m needing the same functionality that comes with css span style.

This topic has been closed for replies.

2 replies

tank666
  • July 4, 2023

Why do you need a component property? After all, this can be achieved by overriding the style for the selected range.


Elliot_George

Screenshot 2023-07-04 at 13.09.24

Hi Tank. I’d like for each part of the text string to be editable in this way. It’s also how we’d like it arranged in our CMS for editors.