
Product
A New Overview in our Dashboard
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
@quanzo/change-font-size
Advanced tools
Change font size for the Editor.js.
Get the package
npm i --save-dev @quanzo/change-font-size
Include module at your application
const InlineCode = require('@quanzo/change-font-size');
dist
from repositorydist/editor.change-font-size.js
file to your page.You can load specific version of package from jsDelivr CDN.
https://cdn.jsdelivr.net/npm/@quanzo/change-font-size@1.0.0
Require this script on a page with Editor.js.
<script src="..."></script>
Add a new Tool to the tools
property of the Editor.js initial config.
var editor = EditorJS({
...
tools: {
...
plus10percent: {
class: ChangeFontSize,
},
plus20percent: {
class: ChangeFontSize,
config: {
cssClass: "plus20pc",
buttonText: "20%"
}
},
},
...
});
Param | Type | Description |
---|---|---|
cssClass | string | This class will be added to the tag span . |
buttonText | string | Text for toolbar. |
buttonIcon | string | Content for the button. For example svg. |
Marked text will be wrapped with a span
tag with class.
{
"type" : "text",
"data" : {
"text" : "Create a directory for your module, enter it and run <span class=\"plus20pc\">npm init</span> command."
}
}
FAQs
Change font size inline tool for Editor.js
We found that @quanzo/change-font-size demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.