Jump to content

data-attributes on ProcessPageEditLink


nabo
 Share

Recommended Posts

Hi

I'm implementing uikit on a theme. It can be useful (and in my case necessary) the opportunity to add data-attributes to ProcessPageEditLink, with or without values.

Example

<a href="my-image.jpg" data-uk-lightbox>...</a>
<a href="" data-uk-lightbox="{group:'my-group'}">...</a>

 

Link to comment
Share on other sites

I don't think ProcessPageEditLink is the correct way to enable users to create such markup, especially the group syntax. Personally I wouldn't even use CKEditor for that. Just imagine the syntax does change a bit in a newer version. You'd need to edit all the textfields using that markup. If you really need to use CKEditor I'd rather go for a class or something and use a textformatter to generate the necessary data attributes based on that class(es).

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...