Skip to content

Embedded editors

Rich text editors such as CKEditor often use contenteditable elements, which are hard to interact with directly. Most of these editors provide a JavaScript API instead. To use it, add a Script step to your test and run the matching code.

CKEDITOR.instances[<fieldname>].setData("This is sample text.");
$("<Element css selector>").data("kendoEditor").value("This is sample text.");
tinyMCE.activeEditor.setContent("This is sample text.");