Leafpub/leafpub

Add classes to href in editor

karsasmus opened this issue · 5 comments

Create the possibility to add css classes to <a> - tags.

Hi :D

How it will work? I mean, it will be configured at settings? Add class when you click at "insert link"?

Hi, @icaromh,

yes, I thought of adding an input for the classes on the "insert link"-panel.

At the moment, you can add <a> tags with classes via the oembed functionality. But I think it's not the best solution for the user.

@karsasmus

something like this plugin?

I'm looking to contribute 😃

I imagine it would be a separate input field that merely reads/writes the link's class attribute. You could reference the title as an example of how it's done.

Awesome, thanks for the hint.