-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Float does not work properly on board description #5271
Comments
Actually, the problem here is that the description is inside a P tag, and the float converts to an html DIV tag, and <div tags can't go inside <p tags, so things go wild. |
Hmm. Maybe it should be a span instead due to nesting possibilities then. But something is still awry with how it applies it. Also, tags that are not allowed are not removed from the description as happens here. |
hmm you're right, I just noticed while trying to edit the description that the float bbcode was gone (even though it's set as allowed)
well if they're not allowed, they're just interpreted as normal text so I don't think they should be removed, just not parsed However we definitely need to change the description to a div element instead of paragraph, just tested a bunch of allowed bbc and it's gone really wild. |
There's at least three (or more) issues here then. 1 - Description should be a div (we also allow divs in the description so there's that too) |
Yes. The same can be said of quite a few other places cases a
No. Floats can contain other block level elements, so that's not an option. |
2 - Ah yes, you're right. I'm slow today :P |
No worries. That's why we help each other out, right? |
Description
As I understand how this works, you should be able to add/remove tags to
$context['description_allowed_tags']
, however it seems float is being processed differently than other tags I tested.I haven't seen if there are others that do the same, but if you allow it, and use [float] in the description, upon saving the tag will be removed from the description text, and float code will be added both to the description and the title.
Steps to reproduce
The text was updated successfully, but these errors were encountered: