Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
tiny-editor
Advanced tools
A tiny HTML rich text editor written in vanilla JavaScript
Create a less than 5 Kb (compressed) library that enables a HTML element to be used as a rich text editor in plain old vanilla JavaScript.
npm install tiny-editor
or load the bundle file directly at the end of your HTML document.
<script src="https://unpkg.com/tiny-editor/dist/bundle.js"></script>
<head>
to load the Font Awesome icon set<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
data-tiny-editor
attribute to the HTML element you want to transform into an editorThere are various options that can be used to customize how the Tiny Editor will be rendered. By default, every options are enabled. You can disable an option using data attributes.
For example, you can remove the bold format button using the following attribte:
<div data-tiny-editor data-bold="no"></div>
data-height="(value)"
: set the editor's heightdata-formatblock="no"
: remove the styles drop down listdata-bold="no"
: remove the bold buttondata-italic="no"
: : remove the italic buttondata-underline="no"
: remove the underline buttondata-fontname="no"
: remove the font drop down listdata-forecolor="no"
: : remove the text color buttondata-justifyleft="no"
: remove the left align buttondata-justifycenter="no"
: remove the center align buttondata-justifyright="no"
: remove the right align buttondata-insertorderedlist="no"
: remove the numbered list buttondata-insertunorderedlist="no"
: remove the bulleted list buttondata-outdent="no"
: remove the decrease indent buttondata-indent="no"
: remove the increase indent buttondata-remove-format="no"
: remove the clear formatting buttonFAQs
A tiny HTML rich text editor written in vanilla JavaScript
The npm package tiny-editor receives a total of 252 weekly downloads. As such, tiny-editor popularity was classified as not popular.
We found that tiny-editor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.