OP 20 July, 2020 - 01:30 AM
Error
Condition
If the thread is locked or guest (non logged in user) viewing thread
Why it is happening
CKeditor is not loaded because either thread doesn't have quick reply editor at the bottom
Impact
Unhide button is not working when page is changed with pagination
Further explanation: Go to this thread https://cracked.to/Thread-Me-Hans69-KSZ change page from pagination (like go to 2nd page) and try to unhide banned user's post.
Fix 1 (optional)
Either remove ckeditor scripts (and files) when thread is locked or when guest is browsing the thread
Fix 2 (necessary)
This condition in rineditor.js file, check for CKEDITOR.instances[Object.keys(CKEDITOR.instances)[0]] !== 'undefined'
Condition
If the thread is locked or guest (non logged in user) viewing thread
Why it is happening
CKeditor is not loaded because either thread doesn't have quick reply editor at the bottom
Impact
Unhide button is not working when page is changed with pagination
Further explanation: Go to this thread https://cracked.to/Thread-Me-Hans69-KSZ change page from pagination (like go to 2nd page) and try to unhide banned user's post.
Fix 1 (optional)
Either remove ckeditor scripts (and files) when thread is locked or when guest is browsing the thread
Fix 2 (necessary)
This condition in rineditor.js file, check for CKEDITOR.instances[Object.keys(CKEDITOR.instances)[0]] !== 'undefined'