tinymce - How to Cut, Copy and Paste from JavaScript to a User's Clipboard -


there multiple similar questions in stackoverflow deal how cut, copy, , paste javascript (in response button press, instance) without user having use ctrl+x, c, or v.

all these answers suggest either insane wanting , users should never have clipboards violated in such profane manner, or use hack of invisible flash movie (which has questionable support).

however, google docs this, , not use flash movie. can open google document, go edit menu, choose "paste" (or cut or copy) , not browser window tells "your browser security settings don't permit editor automatically execute copying operations."

however, go rich text editor (ckeditor or tinymce instance, common among them all) , try same command. message reads:

"your browser security settings don't permit editor automatically execute copying operations."

so question simply: google docs doing allow users cut, copy, , paste via menu button doesn't run in security issues?

a quick @ browsers show have google docs extension installed. know fact possible use of extension (browser extensions play in different, more "trusted" sandbox), (and people do) use these expose api javascript used within sites within browser in extension installed.

based on fact have extensions google allow "for viewing , editing of google docs" across browsers - how it. building extensions browsers per-browser project , code write extension in 1 browser typically partially portable.

google because user base intrinsically trust , happily download , install necessary extensions , plugins google publishes varying web-based services extend beyond capacity of standard web technologies. trust google won't our stuff pwned.

so short answer is: can't it. unless you're prepared write necessary extensions/plugins chrome, firefox, safari, ie8+... etc... google works because of extension called google docs installed within browser. (ie, in google chrome navigate chrome://extensions/ see own google docs extension).

if want give extension writing try chrome, visit guide on how so! forewarned however, installing extensions takes significant trust on user's part , should not required in "sales funnel."

edits: because i'm horrible @ grammatically correct english


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -