Skip to content

ckeditor5-elements / selectNewElement

Function: selectNewElement() ​

ts
function selectNewElement(writer, element): void;

Puts the selection in a newly inserted element, so that the user can go on: an object is selected; an element that holds text gets the cursor inside it; an element that holds blocks gets an empty paragraph with the cursor.

Parameters ​

ParameterType
writerModelWriter
elementModelElement

Returns ​

void