Skip to content

fdaciuk/document.queryCommandSupported

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

document.queryCommandSupported

Build Status

Polyfill for document.queryCommandSupported that fixes known bugs on Gecko and Blink.

Note: Only copy and cut are polyfill'ed. Any other argument will be executed using the native function.

Install

You can get it on npm.

npm install query-command-supported --save

Or bower, too.

bower install query-command-supported --save

If you're not into package management, just download a ZIP file.

Usage

First, include the script located on the dist folder.

<script src="dist/queryCommandSupported.min.js"></script>

Then, run the queryCommandSupported function as you would normally do.

var isSupported = document.queryCommandSupported('copy');

This will return a boolean that indicates whether or not the command is supported by the browser.

License

MIT License © Zeno Rocha

About

Polyfill for document.queryCommandSupported that fixes known bugs on Gecko and Blink

Resources

Stars

0 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors

Languages

  • JavaScript 97.1%
  • HTML 2.9%