On Tue, Oct 25, 2016 at 7:44 PM, Vincent Massol <[email protected]> wrote:
> Hi devs, > > I’ve noticed that users often try to make simple tables > filterable/sortable. And LT are too complex for simple tables. > > Actually we do implement the feature already in xwiki-platform > (tablefilterNsort.js.js + icons) but we don’t make it easy for users to use > it. > > Right now a user has to know the magic incantation. They can find the doc > here: > * http://extensions.xwiki.org/xwiki/bin/view/XWiki/XWikiSyntax?syntax=2.1& > section=Tables&xpage=print > * http://snippets.xwiki.org/xwiki/bin/view/Extension/Table+Sorter > > What I’d like to propose is to > > 1/ Include a new core macro in xwiki-platform that would allow to > transformation a table into a sortable/filterable table, as it’s done by > http://extensions.xwiki.org/xwiki/bin/view/Extension/Make+ > All+Wiki+Tables+Sortable+Macro: > > {{table [sort="true|false" filter="true|false” oddEven=“true|false”}} > |=heading1|=heading2 > |cell1|cell2 > {{/table}}} > > > 2/ In the CKEditor UI when inserting a table, offer several checkboxes for > Sortable, Filterable, OddEven and have the WYSIWYG editor insert this table > macro when checked. > You forget that macro output is not editable directly inside the WYSIWYG editor text area. And it cannot be editable as long as the output is the result of some transformation of the macro content. It could be editable if the macro only applies some CSS styling and doesn't perform any transformation on the XDOM/DOM structure. Adding support for this particular type of macros would be nice but it's not trivial and poses some problems such as nested macros. It would require considerable changes in the way macros are implemented inside the WYSIWYG editor. Thanks, Marius > My rationale for wanting to include it is because I consider this to be a > basic use case (core use case) that would benefit from being by default in > any flavor of XWiki. > > WDYT? > > Note that if we should not agree to have it by default then it also > doesn’t make sense to have tablefilterNsort.js in xwiki-platform IMO. > > Thanks > -Vincent > > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

