Ok,
In 3.0 is it possible to execute the command that a button calls when clicked. I've seen enough posts on the forums to believe it's possible yet none of the code seems to work. Here's what i have.
1. I have a textarea called 'editor_FDA'
When you click on the link it doesn't error but nothing happens either. Can anyone explain what i'm doing wrong here ?
In 3.0 is it possible to execute the command that a button calls when clicked. I've seen enough posts on the forums to believe it's possible yet none of the code seems to work. Here's what i have.
1. I have a textarea called 'editor_FDA'
<script language='javascript'> var fdaEditor = CKEDITOR.replace( 'editor_FDA', height : '500px'); </script> <html>.... <a href='#' onclick="javascript:fdaEditor.execCommand('Bold');" >Make Bold </a> .... </html>
When you click on the link it doesn't error but nothing happens either. Can anyone explain what i'm doing wrong here ?
Re: External Button Call
Once again, the documentation example is wrong. in it they have
execCommand( 'Bold' );
Well, sadly, the bold command in CK v.3.0 is actually 'bold' so it's
execCommand('bold');
Hope that helps some people.