Style, class, attributes for list items (not a whole list)?

#1

Is there a markup way to add attributes (style, class, etc.) to individual list items? For example a markup equivalent for <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>.

My use case is converting bootstrap’s Carousel to xwiki markup. Mostly no problem, except for the indicator list, which has attributes like above. (Why not just use the HTML macro? I want the carousel contents to remain directly editable via the WYSIWYG editor.)

0 Likes

#2

Hi @camazon. Unfortunately this doesn’t exist in Wiki Syntax 2.1. See https://jira.xwiki.org/browse/XRENDERING-36

0 Likes

#3

Of course you could use the {{html}} macro.

0 Likes

#4

Thanks for your quick response, @vmassol. Glad to see the issue is already in queue.

The only reason to convert the carousel html to wiki markup is to make the slide contents editable via the CKeditor. At least in our Xwiki instace, using the HTML macro would defeat that purpose.

0 Likes

#5

I’ve created a jira at https://jira.xwiki.org/browse/CKEDITOR-307 for this use case. Thx

0 Likes

#6

Wow…yes! Thanks for that. A WYSIWYG-editable HTML macro would be super-beneficial in general.

0 Likes