Hi, is there a way to insert text using the jquery plugin?
What I'm trying to achieve is clicking a link external to the editor and inserting some text at the cursor position.
I'm initialising the editor like this:
What I'm trying to achieve is clicking a link external to the editor and inserting some text at the cursor position.
I'm initialising the editor like this:
$(document).ready(function() {
var config = {
toolbar:
[
['Source', '-', 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink'],
['UIColor']
]
};
$('.richEditor').ckeditor(config);
});
Re: jquery and insertText
function insertSomeText(someText) { var editor = $('#mycontrolsID').ckeditorGet(); editor.insertText(someText); }Re: jquery and insertText