2014-11-28, 07:52 PM
Excuse me, I have another question...
I want to make a fix to correct, an error with the MyBB smiles inserter...
Results that the Mybb smiles inserter (the smiles on the left side), don't function with the source code mode, and I want to make a fix, but I need to add an automatic function that detects the editor.mode and add the specific functions to the smiles inserter in the onClick event ( CKEDITOR.performInsert('smile',false); ).
But I need help because I need to find the function that change the editor mode (the source button), or add an onclick function to the source button, to activate the function that adds or remove the onClick event in the Mybb smiles inserter
In the wysiwyg mode the Mybb smiles inserter functions well, but If the onClick event ( CKEDITOR.performInsert('smile',false); ) that I want to add, isn't deleted when the editor mode is wysiwyg, causes error...
And sorry for my bad english...
I want to make a fix to correct, an error with the MyBB smiles inserter...
Results that the Mybb smiles inserter (the smiles on the left side), don't function with the source code mode, and I want to make a fix, but I need to add an automatic function that detects the editor.mode and add the specific functions to the smiles inserter in the onClick event ( CKEDITOR.performInsert('smile',false); ).
But I need help because I need to find the function that change the editor mode (the source button), or add an onclick function to the source button, to activate the function that adds or remove the onClick event in the Mybb smiles inserter
In the wysiwyg mode the Mybb smiles inserter functions well, but If the onClick event ( CKEDITOR.performInsert('smile',false); ) that I want to add, isn't deleted when the editor mode is wysiwyg, causes error...
And sorry for my bad english...