how to set tiny editor text value to another tiny editor

hi..

if it possible to set tinyeditor text value to another tinyeditor.... that means i have 2 tiny editor if i type 1st  editor and click the button the 2nd tiny editor body of the content is changed.... pls help me... it's urgent for me...

thanks....sad

asked May 19, 2012 by anonymous

1 Answer

0 votes

Heve you tried an onkeypress functions?

Something like this:

function copy_data(val){
        var messageText = document.getElementById(val.id).value
            document.getElementById('message').innerHTML = messageText;
}

And then in your text area add:

 <textarea name="original text" onkeypress="copydata(this)" >

This will copy the data from the current textarea to a text area with the ID message ...

 

answered May 21, 2012 by anonymous
hi.. tnx for the reply...
i got it 2day mrg ... i use this code...

var frame_apply = "";

    $("iframe").each(function(index){
   
               if($(this).width()== 449)
               {
                  var frame = $(this).contents().find("body").html();
                   if(index == 8)
                   {
                     frame_apply = frame;
                   }
                                       
                  $(this).contents().find("body").html(frame_apply);                                         
               }
                      
                             
        });

i have another pblm how to set readonly mode in tiny editor...