cclaerhout
Well-known member
Since the XenForo developers are back to work, I've got two questions for them (or any developers who would have the answer of course). In the Formatter class, we can see for example this code (except the php comment):
In which case the page view ($this->_view) is not available when the formatter is called? Is it with mail templates? When the fallback is needed?
Edit: I forgot to write my second question...
What was the purpose of this line which makes me crazy when I was trying to update TinyMCE:
There's no reference anywhere on the TinyMCE forum or anywhere else. I didn't find any problem with ajax loads. Was it a problem with some former browsers?
PHP:
if ($this->_view)
{
$template = $this->_view->createTemplateObject('bb_code_tag_php', array(
'content' => $content
));
return $template->render();
}
else
{
//Fallback
return '<div style="margin: 1em auto" title="PHP">' . $content . '</div>';
}
In which case the page view ($this->_view) is not available when the formatter is called? Is it with mail templates? When the fallback is needed?
Edit: I forgot to write my second question...
What was the purpose of this line which makes me crazy when I was trying to update TinyMCE:
Code:
tinyMCE.dom.Event._pageInit(window); // for ajax loads