Page 1 of 1

Suggest an Article Plugin error in IE

Posted: Fri Oct 06, 2006 7:34 pm
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;
}

Re: Suggest an Article Plugin error in IE

Posted: Mon Oct 09, 2006 12:55 pm
by garvinhicking
Hi!

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

Best regards,
Garvin