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.
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