Jump to content

Tiny_mce


alim
 Share

Recommended Posts

Hello,i have a function, that gives me a selected String in a Textareas. CODE :function moveSelectedWord() { var selectedString = ' '; if (window.getSelection) { // recent Mozilla versions var selectedString = window.getSelection(); } else if (document.all) { // MSIE 4+ document.getElementById('TheText').focus(); var selectedString = document.selection.createRange(); var TheWord = selectedString.text; } else if (document.getSelection){ //old Mozilla versions var selectedString = document.getSelection(); } alert(TheWord);}i've made from that textarea a tiny_mce editor and the function dosn't run correctly naymore. Has anybody an idea, where this error from ?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...