You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a situation where a user had entered into SCEditor a youtube video inside some other formatting tags ([b],[i]) and the rendering to HTML was throwing an exception. Digging around I found out that in classes/Node/Container/Document.php the [youtube] tag is defined as block. I changed the constructor's third parameter to BBCode::INLINE_TAG and it solved my immediate problem.
Does youtube really need to be block-level? I'm asking because if this is the case, then the WYSIWYG part of SCEditor should also make sure to produce correct bbcode that can be parsed by SBBCodeParser.
Thanks
The text was updated successfully, but these errors were encountered:
I had a situation where a user had entered into SCEditor a youtube video inside some other formatting tags (
[b]
,[i]
) and the rendering to HTML was throwing an exception. Digging around I found out that inclasses/Node/Container/Document.php
the[youtube]
tag is defined as block. I changed the constructor's third parameter toBBCode::INLINE_TAG
and it solved my immediate problem.Does youtube really need to be block-level? I'm asking because if this is the case, then the WYSIWYG part of SCEditor should also make sure to produce correct bbcode that can be parsed by
SBBCodeParser
.Thanks
The text was updated successfully, but these errors were encountered: