There's a small bug in your Iversia_FAQ_ModerationQueueHandler_Question class
$alertModel = XenForo_DataWriter::create('XenForo_Model_Alert');
Model, not DW :)
yes.
I've given it up to try to find a solution for the current problem and just removed $view->createOwnTemplateObject()->addRequiredExternal('js','js/core/editorplugins.js'); and replaced with an template edit inside the
editor_js_setup template.
Now the redactor exists when my code is...
It is there before the redactor.js
i'm using
$view->createOwnTemplateObject()->addRequiredExternal('js','js/core/editorplugins.js');
$editorOptions['json']['buttons']['insert'] = array(
'title' => 'insert',
'callback' => 'foo'
);
inside the...
Do i need to take care of the EditorInit event?
$(window).on('EditorInit', function(editor, config,textarea)
{
this.redactor = editor;
this.redactorOptions = config;
if (typeof this.redactor != 'undefined')
{...
It would be nice, if you would add the content type and content id to the bbCodeOptions States array.
The problem with your current implemention is, that you're setting the contentType and contentIdKey in the extraOptions array, but they aren't available in the parser, only the states array...
Wouldn't it be better to use XenForo_Model_Attachment::countAttachments inside datawriters:.associateAttachments and after attachment deletion to rebuild the counter, instead of calling +1 / -1 queries (*). This would deliver the real values.
I've just seen on another board with inconsistent...