utils/dom/createelement
@ckeditor/ckeditor5-utils/src/dom/createelement
module
Filtering
Functions
-
createElement( doc, name, [ attributes ], [ children ] ) → Element
Creates element with attributes and children.
Parameters
doc : Document
Document used to create element.
name : String
Name of the element.
[ attributes ] : Object
Object keys will become attributes keys and object values will became attributes values.
[ children ] : Node | String | Array.<(Node | String)>
Child or array of children. Strings will be automatically turned into Text nodes.
Returns
Element
Created element.
Every day, we work hard to keep our documentation complete. Have you spotted an outdated information? Is something missing? Please report it via our issue tracker.