Get your own copy
Don't hesitate! Just download and test it all by yourself for free!
// Creates a html chunk and inserts it at the current selection/caret location
tinyMCE.activeEditor.selection.setContent(tinyMCE.activeEditor.dom.createHTML('a', {href : 'test.html'}, 'some line'));
| Name | Type | Description |
|---|---|---|
| n | String | Name of new element. |
| a | Object | Optional object name/value collection with element attributes. |
| h | String | Optional HTML string to set as inner HTML of the element. |
Search documentation.