Style links in rich text to look like buttons

2025/10/13 12:33 PM

Hello,

Is it possible to update the rich text editor to ass button styles for links? When I add a link to the editor I would like to have the ability for editors to select a button style in some cases for this. There are limited options for links in the editor. Can these options be extended?

1.00


Environment

  • Xperience by Kentico version: [30.10.0]

  • .NET version: [8]

  • Execution environment: [SaaS]

Tags:
Components HTML Software development

Answers

2025/10/15 7:55 AM

I wanted to quickly try the solution and respond, but I ended up going down a rabbit hole.

The Froala editor used by XbyK is customizable, and its Link plugin includes the linkStyles option, exactly what you asked about. Since the documentation mentions that XbyK bundles most of Froala’s plugins, I thought it would just be a matter of adding linkStyles to the editor config. Unfortunately, that didn’t work.

After doing some more research, I found that the Link plugin is most likely not bundled with XbyK, as the link button doesn’t appear even when I include insertLink in the toolbarButtons config option. My assumption is that since XbyK implements a custom plugin, @kentico/xperience-admin-base/Link, for inserting links from within the system, the default Froala Link plugin might have been excluded, either because it’s redundant or due to potential conflicts between the two.

Anyway, I also tried adding the linkStyles option in the @kentico/xperience-admin-base/Link plugin config, but that didn’t work either. I assume it doesn’t implement such an option.

I’d recommend reaching out to the support or consulting team to shed more light on this, and suggesting an improvement to the documentation to list which plugins are excluded and why.

To response this discussion, you have to login first.