quill-paste-smart
Advanced tools
Comparing version 1.0.6 to 1.1.0
{ | ||
"name": "quill-paste-smart", | ||
"version": "1.0.6", | ||
"version": "1.1.0", | ||
"description": "Quill Extension to paste only supported HTML", | ||
"main": "dist/quill-paste-smart.js", | ||
"main": "dist/module.js", | ||
"devDependencies": { | ||
@@ -7,0 +7,0 @@ "@babel/core": "^7.9.0", |
@@ -26,5 +26,5 @@ # Quill Paste Smart | ||
import Quill from 'quill'; | ||
import PasteSmart from 'quill-paste-smart'; | ||
import QuillPasteSmart from 'quill-paste-smart'; | ||
Quill.register('modules/clipboard', PasteSmart, true); | ||
Quill.register('modules/clipboard', QuillPasteSmart, true); | ||
@@ -59,6 +59,39 @@ ``` | ||
<br> | ||
### CommonJS | ||
It is possible to use this module by including it though a `<script>` tag. Here is a full example. | ||
```html | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Quill Paste Smart</title> | ||
<link href="https://unpkg.com/quill@latest/dist/quill.snow.css" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div id="editor"></div> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/quill/2.0.0-dev.4/quill.min.js"></script> | ||
<script src="https://unpkg.com/quill-paste-smart@latest/dist/index.js"></script> | ||
<script> | ||
Quill.register('modules/clipboard', QuillPasteSmart); | ||
var quill = new Quill('#editor', { | ||
theme: 'snow', | ||
}); | ||
</script> | ||
</body> | ||
</html> | ||
``` | ||
<br> | ||
### License | ||
This plugin is licensed under the terms of the [MIT License](https://github.com/Artem-Schander/quill-paste-smart/blob/master/LICENSE) | ||
(See LICENSE file for details). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
137041
5
622
0
96
4
8