Ticket #4558 (closed Bug: duplicate)

Opened 5 years ago

Last modified 5 years ago

Selection not picked up in dialog

Reported by: ayh Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

For instance concider the demotext (e.g. This is some sample text. You are using CKEditor.):

Choose/select the entire 'CKeditor' link in the demotext and edit the link... the actual link is not shown in the dialog. When the selection is collapsed on 'CKeditor', the link is shown in the the dialog.

Perhaps it is by design.. but back in the old days of FCKeditor it was behaving consistent! Selection of collapsed.. A link is shown in the dialog!

Another related question (about a selection in editor): I'm trying to make a plugin (converting a FCKplugin I made). How can I get the selected-text in the dialog? editor.getSelection() gives me an object... I can't figure out how to get the text (getHTML, getText does not not work).

Change History

comment:1 Changed 5 years ago by ayh

BTW: This behaviour (bug) is observed in IE... (7, 8). In Firefox the selection is working better but sometimes when selecting manualy in Firefox it behaves the same. In FCKeditor there was also an issue with selection in IE vs Firefox

comment:2 Changed 5 years ago by garry.yao

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

Thanks for the report, I've opened #4561 for IE.

but sometimes when selecting manualy in Firefox it behaves the same

The correct way for selecting a link is by use the bottom elementpath bar.

I can't figure out how to get the text (getHTML, getText does not not work).

Please use our forums for discussions and community support.

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy