nabo Posted January 9, 2017 Share Posted January 9, 2017 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 More sharing options...
LostKobrakai Posted January 9, 2017 Share Posted January 9, 2017 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). 1 Link to comment Share on other sites More sharing options...
nabo Posted January 9, 2017 Author Share Posted January 9, 2017 I meant, not create, but choose from a list like other attributes. Anyway I solved with class as you wrote. Link to comment Share on other sites More sharing options...
LostKobrakai Posted January 9, 2017 Share Posted January 9, 2017 Choosing from a predefined list still has the issue, that the data-attribute is saved as markup in the db and isn't dynamically generated/updateable. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now