Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
scribe-plugin-span-style
Advanced tools
A Scribe Plugin for adding inline styles through elements
A Scribe Plugin for adding inline styles through <span>
elements.
The description <span>
is probably not accurate anymore. From 0.2.0 on, the plugin will now use any available tags it can find, that includes <b>
,<i>
,<strong>
,<em>
,<li>
,etc
. Only if it is not able to use one of those will it create a <span>
to wrap the selection into.
Example:
import Scribe from 'scribe-editor';
import ScribeSpanStyleCommand from 'scribe-plugin-span-style';
// ...............
let scribe = new Scribe(document.querySelector('#my-editor'));
scribe.use(ScribeSpanStyleCommand('color'));
scribe.use(ScribeSpanStyleCommand('fontSize'));
scribe.use(ScribeSpanStyleCommand('fontFamily'));
// ...............
let command = scribe.getCommand('fontSize');
command.execute('24px');
// ...............
let command = scribe.getCommand('fontSize');
let originalRange = scribe.selection.range;
// Some more code that causes the selection to lose focus...
command.execute({
value: '24px',
range: originalRange
});
Requirements
<p>
or <div>
tags as the root nodes of your linesKnown Issues / Todo
<span>
nodes sometimes do not get unwrapped properlyChangelog
v0.2.0
{value: '12px', range: originalRange}
) to support input elements that might cause losing the selection before execution of the commandFAQs
A Scribe Plugin for adding inline styles through elements
The npm package scribe-plugin-span-style receives a total of 0 weekly downloads. As such, scribe-plugin-span-style popularity was classified as not popular.
We found that scribe-plugin-span-style 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.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.