Opened 13 years ago

Closed 12 years ago

#80 closed defect (fixed)

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 (1)

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

Download all attachments as: .zip

Change History (5)

Changed 13 years ago by anonymous

Screenshot : Note the euro sign inserted at the top

comment:1 Changed 12 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 )

comment:2 Changed 12 years ago by gogo

Hmm, this is suspiciously like #237

comment:3 Changed 12 years ago by gogo

  • Milestone set to Version 1.0
  • Severity changed from normal to major
  • Version set to trunk

comment:4 Changed 12 years ago by mokhet

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

fixed in changeset [253]

Note: See TracTickets for help on using tickets.