Opened 15 years ago

Closed 15 years ago

#4204 closed Bug (invalid)

writing in ckdialog via popup is impossible

Reported by: hebuiss42 Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0 RC
Keywords: Cc:


Browser: Firefox 3.5 OS: Windows XP Version fo CKEditor: 3.0 RC

It is not possible to write data from an opened popup into a textinput field of a ckeditor's dialog.

Example: You're manually adding a button in the "insert link dialog", which opens a new popup with a selection of links. The user selects one of these links, but then it is impossible to tell the ckeditor dialog, which link has been selected.

Reason: Every textinput field seems to have a random ID (e.g. '65_textInput'). Additionally, when having multiple editor instances, every editor uses another ID for the text input field in the same dialog. Therefore, it is impossible to get a lock on this input via "opener.getElementById('textInput')".

Possible solution: Every object should have a property like "getRealId()", so one could execute the popup like this:

<a href="" OnClick="'popup.html?wirteBackId=textInput_1337','My Popup','');">Open Popup</a>

Change History (1)

comment:1 Changed 15 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: newclosed

You can check how this is done in the filebrowser plugin for the buttons that launch a dialog and the write the selected file back to the url field.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy