Hi there, I have tried contacting them with no reply so I started working on it.
I was just wondering why in the world every time I use that javascript code to insert something it puts the "Â" in there? At this time I'm not working to make it insert the actual smilie image but just the smilie "code".
Which brings me to the next part, How do I prevent the editor from trying to turn the smilie code into a smilie. I tried disabling the smiley plugin with no luck.
I have noticed that when I disable the BBCode plugin in CKEditor that when I insert the smilie it wont insert the "A". Does anyone have any idea where in the BBCode plugin I can change it to prevent this "A" from being inserted after every smilie, and even prevent it from trying to "parse" smilies in the editor?
Update: I've also noticed it not only inserts the A after a space of just smilies, but also any BBCode. So if I use itanic, close italic and put bold, it puts the A in. Any ideas?
$(document).ready(function(){
$("#smiley-box a.smiley").click(function(){
var editor = CKEDITOR.instances. <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->signature<!-- ELSE -->message<!-- ENDIF -->;
if(editor.mode=='wysiwyg') editor.insertHtml(' '+$(this).html()+' ');
});
});
Re: CKEditor trouble "insert text"
http://www.phpbb.com/customise/db/mod/ckeditor/
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: CKEditor trouble "insert text"
I have tried contacting them with no reply so I started working on it.
I was just wondering why in the world every time I use that javascript code to insert something it puts the "Â" in there? At this time I'm not working to make it insert the actual smilie image but just the smilie "code".
Which brings me to the next part,
How do I prevent the editor from trying to turn the smilie code into a smilie. I tried disabling the smiley plugin with no luck.
Re: CKEditor trouble "insert text"
Re: CKEditor trouble "insert text"
Re: CKEditor trouble "insert text"
http://stackoverflow.com/questions/3504 ... special-ch
Documentation Manager, CKSource
See CKEditor 5 docs, CKEditor 4 docs, CKEditor 3 docs, CKFinder 3 docs, CKFinder 2 docs for help.
Visit the new CKEditor SDK for samples showcasing editor features to try out and download!
Re: CKEditor trouble "insert text"
<a href="#" onclick="insert_text('{smiley.A_SMILEY_CODE}', true); return false;">$(document).ready(function(){ $("#smiley-box a.smiley").click(function(){ var editor = CKEDITOR.instances. <!-- IF S_UCP_ACTION and not S_PRIVMSGS and not S_EDIT_DRAFT -->signature<!-- ELSE -->message<!-- ENDIF -->; if(editor.mode=='wysiwyg') editor.insertHtml(' '+$(this).html()+' '); }); });kida7kahp@gmail.comvinh_thekiller@yahoo.com
viewtopic.php?f=11&t=24442
http://hanghaicnt.net/phpBB3/
Re: CKEditor trouble "insert text"