Roy Tang

Programmer, engineer, scientist, critic, gamer, dreamer, and kid-at-heart.

Blog Notes Photos Links Archives About

I have a CKEditor instance with inline editing enabled. It works fine, but I also have an [Edit] button which I want to trigger inline editing (and focus on the text) when the button is clicked.

Is this possible?

Comments

You can use like this

CKEDITOR.inline(myId); 
    
function onButtonClick()
{
    myId.focus();
}

try this javascript code to solve : focus the ckeditor inline

$(btn).on('click', function(event) {
    event.preventDefault();
    $("#ckeditor_id").focus();
});