Last modified: 2011-04-21 08:20:43 UTC
When you select some words with whitespaces in the end / beginning and click on "Link" or "Bold" or whatever, they are surrounded by the inserted chars instead of beeing trimmed and appended outside of the replacement. This feature had been provided by the old toolbar in with the function checkSelectedText() in the http://bits.wikimedia.org/skins-1.5/common/edit.js, but it just caught blanks. Maybe I'm going to try to build my first own patch, but it would be better if someone who already knows the code could do this.
Could you show an example of what you mean? It sounds like you are describing the current behavior... "they are surrounded by the inserted chars" and "being trimmed and appended outside of the replacement" sound like the same thing to me.
Current behavior: bla blablabla bla _\ bla ''' blablabla ''' bla ^ selection ^ / How it should be: bla blablabla bla _\ bla '''blablabla''' bla ^ selection ^ / The whitespaces in the end / beginning of the selection should be ignored. Sorry for my bad English :-)
I think I'll work on this.
Done in r86603