Hi,
I’ve come to weird situation. I use textarea to enter text, and dhtmlxMenu to pick various formating options, like “BOLD”, “ITALIC” etc … in Chrome and FF it works just fine, but in IE, the text replacement doesnt work - it always appends the tags to the end of the text, not on the current caret/highlight text position. I was able to track down, that when I call the function that puts the bold tags around my textarea highlighted text, from a button, it works in IE. But when I call it from dhtmlxMenu, it doesnt work, because its unable to detect the beginning and the end of the text. When digging more deeply into
jquery.fieldSelection.js
script im using, i came to conclusion, that “document.selection” is overriden by the Menu. Is it really so, and is there any possibility to avoid this ?