NOTE: You only need to make these changes if you have updated to vB 4.1.4+
I have attached an updated product xml file. You will need to re-import with "Allow Overwrite" set to "Yes". I then made the following changes:
In cannedreplies.php I removed all instances of:
PHP Code:
require_once(DIR . '/includes/functions_wysiwyg.php');
I then changed all instances of
PHP Code:
if ($vbulletin->GPC['wysiwyg'])
{
$reply = convert_wysiwyg_html_to_bbcode($vbulletin->GPC['message'], 1);
}
to
PHP Code:
if ($vbulletin->GPC['wysiwyg'])
{
require_once(DIR . '/includes/class_wysiwygparser.php');
$html_parser = new vB_WysiwygHtmlParser($vbulletin);
$reply = $html_parser->parse_wysiwyg_html_to_bbcode($vbulletin->GPC['message']);
}
and changed
PHP Code:
$editorid = construct_edit_toolbar('', 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0));
to
PHP Code:
$editorid = construct_edit_toolbar('', 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0), 1, 0, 'fe', '', array(), 'content', 'vBForum_Post', 0, 0, 0, true, 'titlefield');
...
PHP Code:
$editorid = construct_edit_toolbar($cr['reply'], 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0));
to
PHP Code:
$editorid = construct_edit_toolbar($cr['reply'], 0, 'nonforum', iif($vbulletin->options['privallowsmilies'], 1, 0), 1, 0, 'fe', '', array(), 'content', 'vBForum_Post', 0, 0, 0, true, 'titlefield');
I then replaced everything in clientscript/cannedreplies.js with:
Code:
function insertCannedReply(text)
{
if (document.getElementById("vB_Editor_001"))
{
CKEDITOR.instances.vB_Editor_001_editor.insertHtml(text);
}
else
{
CKEDITOR.instances.vB_Editor_QR_editor.insertHtml(text);
}
}
It is important to make sure the template changes in the new product xml take place for this to work.
I believe that is all of the changes. You may want to backup the modified files before making the edits.
--
@mmackinnon I updated this mainly to see if I could, because I know CKEditor is a big change. I then found out someone was looking to pay to have it updated. I contacted them, but never heard back. If you do these edits, it should work - if you really have the urge to pay me something then you can find my paypal info in my released mods :P