Suggest an Article Plugin error in IE

Found a bug? Tell us!!
Post Reply
WonkoDSane
Regular
Posts: 25
Joined: Tue Mar 28, 2006 10:37 pm
Location: Annandale, VA

Suggest an Article Plugin error in IE

Post by WonkoDSane »

Not a big error, but needs to be mentioned.

in /plugins/serendipity_event_suggest

suggest.js is missing the function getIESelection.

It means that the URL button will not work in IE.

Just tacking the following code from the editor.js file onto the end of suggest.js corrects the problem:

Code: Select all

function getIESelection(txtarea) {
return document.selection.createRange().text;
}
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Suggest an Article Plugin error in IE

Post by garvinhicking »

Hi!

Great detective work! :) I fixed the bug and committed it just as you mentioned :)

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply