CrazyStack
CrazyStack

Reputation: 169

CKEditor: set value of an input field in dialog window of plugin "image"

How can i get instances of plugin dialog window contents elemets to manipulate its for example set the value of an input field in dialog window of plugin "image"?

Upvotes: 0

Views: 2424

Answers (1)

oleq
oleq

Reputation: 15895

Use the following to retrieve the native DOM element of a field (already opened dialog):

CKEDITOR.dialog.getCurrent().getContentElement( 'info', 'txtUrl' ).getInputElement().$

To dynamically set field's value when the dialog is shown, please refer to my previous answer.

Upvotes: 1

Related Questions