New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

scribe-editor

Package Overview
Dependencies
Maintainers
9
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

scribe-editor - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1

6

CHANGELOG.md

@@ -0,1 +1,7 @@

# 1.4.1
Small optimisation to avoid a relayout as a result of placing Scribe markers.
Thanks for improvement [Brad Vogel](https://github.com/bradvogel)
# 1.4.0

@@ -2,0 +8,0 @@

2

package.json
{
"name": "scribe-editor",
"version": "1.4.0",
"version": "1.4.1",
"main": "src/scribe.js",

@@ -5,0 +5,0 @@ "dependencies": {

Scribe [![Build Status](https://travis-ci.org/guardian/scribe.svg?branch=master)](https://travis-ci.org/guardian/scribe)
======
[![Join the chat at https://gitter.im/guardian/scribe](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/guardian/scribe?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
A rich text editor framework for the web platform, with patches for

@@ -5,0 +7,0 @@ browser inconsistencies and sensible defaults.

@@ -84,4 +84,6 @@ define([

var startMarker = document.createElement('em');
startMarker.style.display = 'none';
startMarker.classList.add('scribe-marker');
var endMarker = document.createElement('em');
endMarker.style.display = 'none';
endMarker.classList.add('scribe-marker');

@@ -88,0 +90,0 @@

@@ -173,3 +173,3 @@ define([

// Get scribe previous content, and strip markers.
var lastContentNoMarkers = scribe._lastItem.content.replace(/<em class="scribe-marker">[^<]*?<\/em>/g, '');
var lastContentNoMarkers = scribe._lastItem.content.replace(/<em [^>]*class="scribe-marker"[^>]*>[^<]*?<\/em>/g, '');

@@ -176,0 +176,0 @@ // We only want to push the history if the content actually changed.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc