Skip to content

Commit 5dd5cae

Browse files
DOC-3235: remove usage of deprecated setContent method from docs
1 parent 97cb18f commit 5dd5cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/ROOT/pages/apis/tinymce.dom.domutils.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ Creates HTML string for element. The element will be closed unless an empty inne
269269
[source, javascript]
270270
----
271271
// Creates a html chunk and inserts it at the current selection/caret location
272-
tinymce.activeEditor.selection.setContent(tinymce.activeEditor.dom.createHTML('a', { href: 'test.html' }, 'some line'));
272+
tinymce.activeEditor.insertContent(tinymce.activeEditor.dom.createHTML('a', { href: 'test.html' }, 'some line'));
273273
----
274274

275275
==== Parameters

0 commit comments

Comments
 (0)