XF 2.1 Font Awesome 5, Editor button management, Markdown support and more!

CMTV

Well-known member
How tables will be looking on small screen sizes? Scrollbars? Probalby a way to hide columns?

Also, would be cool to see this or at least part of it in XF 2.1)
 
Last edited:

Xon

Well-known member
If you have any particular table examples that concern you, let us know what the markup is and I’ll let you know if they work already.
Do you support the following child tags; thead/tbody/tfoot/colgroup/caption/col. And will I be able to easily inject additional formatting depending on the options value?
 

Alfa1

Well-known member
If you have any particular table examples that concern you, let us know what the markup is and I’ll let you know if they work already.

We’ve not done a lot in terms of formatting and so things like that may be lost, but we could at least try and make the BB code “work” even if it loses some of the formatting.
Thank you. We are using this markup:
https://xenforo.com/community/threads/th-datatables-bb-code-paid.108805/post-1109851
It originates from the highly popular vbulletin 3 tables addon and the same markup was implemented in @ThemeHouse Datatables. @Jake B. has been working on a XF2 version, using the complex tables from my site as an example.

We use nested tables. i.e. a cell may contain hotlinked attachments or media. Is this supported?
 

Chris D

XenForo developer
Staff member
I’ll get back to you both (and @Xon)

Certainly not implying that we’ll be adding support for any of this, but it would be nice at least if the tables aren’t un-renderable.

I can answer the bit about nesting, you should be able to use any BB code within any of the table tags. Though obviously things like headers are already slightly opinionated in terms of formatting as we make them bold and centred at least.
 

Xon

Well-known member
@Chris D on an implementation note; does this mean the XF2.1 bbcode parser now understand tags which only make sense if there is a certain parent tag?
 

CMTV

Well-known member
Does new bbcode parser support single bbcodes like [hr] and something like that?
 

Chris D

XenForo developer
Staff member
Just to be clear, there is no new BB code parser :) so unfortunately we do still expect opening and closing tags.

@Chris D on an implementation note; does this mean the XF2.1 bbcode parser now understand tags which only make sense if there is a certain parent tag?
Not really, though it's not possible to workaround as it is.

There's a single definition for the TABLE tag, and then that internally inspects its children and handles whatever the output is for specific children as appropriate.
 

eva2000

Well-known member
sweet love the new features. Though like @Xon would need to figure out what to do with existing XF 1.5 created html tables via other addons.
 

Chris D

XenForo developer
Staff member
sweet love the new features. Though like @Xon would need to figure out what to do with existing XF 1.5 created html tables via other addons.
The answer is, essentially, that we don't have direct support for any of the following:
  • <caption>
  • <col>
  • <colgroup>
  • <tbody>
  • <tfoot>
  • <thead>
Worth noting that Froala itself doesn't attempt to output some of those so that's also a slight constraint (in terms of, even if we supported them, the editor itself wouldn't output them, so you'd be having to add them manually in the BB code editor, which isn't ideal).

I think generally the key will be for us to make the existing table code as extendable as possible (it already is via class extensions, but perhaps other approaches) so additional support could be added.

The "Data Tables" style of syntax that mostly uses pipe characters and new lines for cell/row separators is likely unfeasible as it's totally removed from any expectations set out in HTML.
 

sbj

Well-known member
I'd say after the widget system and the navigation system, editor management is/was the most popular thing all forum owners wanted to have modified somehow. It is like the other 2 things, we had addons for these stuff but now being able to have it officially is great. Specially with table support and markdown support. I really like the level of improvements we had so far with push notifications and this. I just hope we'll see a lot more stuff like this.
 

Nirjonadda

Well-known member
Great development improvements update!

Does this support using special character? Froala Editor have this functionality.
 

Xon

Well-known member
Does new bbcode parser support single bbcodes like [hr] and something like that?
I've got an add-on which injects support for that, I'm also stuffing all the various bbcode that my site use it and will likely make it for sale sometime after XF2.1 is released.

ot really, though it's not possible to workaround as it is.

There's a single definition for the TABLE tag, and then that internally inspects its children and handles whatever the output is for specific children as appropriate.
That was my other thought of how it was implemented, as I've got a couple of bb-code which do something like that.

The answer is, essentially, that we don't have direct support for any of the following:
  • <caption>
  • <col>
  • <colgroup>
  • <tbody>
  • <tfoot>
  • <thead>
Worth noting that Froala itself doesn't attempt to output some of those so that's also a slight constraint (in terms of, even if we supported them, the editor itself wouldn't output them, so you'd be having to add them manually in the BB code editor, which isn't ideal).
Guess I need to index ~10 million posts and see if any of them use those then!
 

Chris D

XenForo developer
Staff member
TBH I'm not sure we ever knew it was a desire to have that. I don't believe there's an open (or closed) suggestion for it. That's always a good start :)
 
Top