Ticket #80 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

Bug in insert special character

Reported by: CyberTron Owned by: gogo
Priority: normal Milestone: Version 1.0
Component: Xinha Core Version: trunk
Severity: major Keywords: patch
Cc:

Description

If nothing is selected in the text area (eg. try click on the top corner of the menu bar without clicking on the button), and when you try to insert a special character, it will get inserted outside the text area.

Bug occurs when uing Internet Explorer 6.0 . Firefox does not seem to exhibit this problem.

I'm trying it out with the full-example.html, insert by clicking on the "Insert special character" icon

Attachments

bug.JPG (22.5 kB) - added by anonymous 8 years ago.
Screenshot : Note the euro sign inserted at the top

Change History

Changed 8 years ago by anonymous

Screenshot : Note the euro sign inserted at the top

Changed 8 years ago by anonymous

  • keywords patch added

CharacterMap.prototype.buttonPress = function(editor) {

var sel = editor._getSelection(); var range = editor._createRange(sel); if (HTMLArea.is_ie) {

if (!editor._iframe.contentWindow.document.body.createTextRange().inRange(range)) editor.setMode("wysiwyg");

} editor._popupDialog( "plugin://CharacterMap/select_character", function( entity )

Changed 8 years ago by gogo

Hmm, this is suspiciously like #237

Changed 8 years ago by gogo

  • version set to trunk
  • severity changed from normal to major
  • milestone set to Version 1.0

Changed 8 years ago by mokhet

  • status changed from new to closed
  • resolution set to fixed

fixed in changeset [253]

Note: See TracTickets for help on using tickets.