RoR BlueCloth copy the html

137 Views Asked by At

Hello I am using for a rails (2.3.4) BlueCloth (2.0.11) an want type my text in die text box and after that I want to copy the html preview, which is provided by BlueCloth.

Now: when ever I mark the html, BlueCloth unmark it. Can I FIX This?

here a Screenshot

1

There are 1 best solutions below

3
On BEST ANSWER

Here's a random guess: look for setTimeout or setInterval in your 2,000 lines of JavaScript. Either will have two parameters (the first of which may be a very long function literal), like so:

setTimeout( ..., xxx );
- or -
setInterval( ..., xxx );

The integer xxx is now long to wait, in milliseconds. Make it however long you want. At this point this question appears to have nothing to do with Ruby, Rails, or BlueCloth.