clipboard.js with html.erb to be copied to clipboard

45 views
Skip to first unread message

fugee ohu

unread,
Feb 10, 2019, 3:44:51 AM2/10/19
to Ruby on Rails: Talk
I'm trying to implement clipboard.js It works if i put a simple text string inside the <pre class="prettyprint" id='script-tag'>...</pre> containers but if I put the html shown below it copies only newline and whitespace characters to the clipboard
<pre class="prettyprint" id='script-tag'>
</a>
</pre>


Rob Zolkos

unread,
Feb 10, 2019, 4:57:01 AM2/10/19
to rubyonra...@googlegroups.com
Is the Ruby on Rails list the best place to ask this question?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c1f6a75f-a380-44af-a7fd-2fd2c12d7f18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

fugee ohu

unread,
Feb 10, 2019, 4:04:27 PM2/10/19
to Ruby on Rails: Talk
Works after changing <pre> to <textarea>
Reply all
Reply to author
Forward
0 new messages