Ticket #4204 (closed Bug: invalid)

Opened 5 years ago

Last modified 5 years ago

writing in ckdialog via popup is impossible

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

Description

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="javascript:window.open('popup.html?wirteBackId=textInput_1337','My Popup','');">Open Popup</a>

Change History

comment:1 Changed 5 years ago by alfonsoml

  • Status changed from new to closed
  • Resolution set to invalid

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 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy