Socket
Socket
Sign inDemoInstall

editro

Package Overview
Dependencies
1
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.31 to 2.0.32

2

package.json
{
"name": "editro",
"version": "2.0.31",
"version": "2.0.32",
"description": "HTML WYSIWYG editor in HTML",

@@ -5,0 +5,0 @@ "keywords": [

@@ -46,5 +46,6 @@ const { debounce } = require('../utils');

cm.on('changes', debounce(() => {
const v = cm.getValue();
if (v !== editro.getHtml()) {
editro.setHtml(v, {
const codeMirrorSource = cm.getValue();
if (editro.frame && editro.frame.isDocumentReady() && codeMirrorSource !== editro.getHtml()) {
editro.setHtml(codeMirrorSource, {
sourceType: 'code'

@@ -51,0 +52,0 @@ });

const Element = require('./Element');
const EventEmmiter = require('events');
const { debounce } = require('./utils');
const DOCUMENT_READYSTATE_LOADING = 'loading';

@@ -91,2 +92,8 @@ class Frame extends EventEmmiter {

isDocumentReady() {
const doc = this.node.contentDocument;
return doc && doc.readyState && doc.readyState !== DOCUMENT_READYSTATE_LOADING;
}
_select(node, silenced) {

@@ -93,0 +100,0 @@ if (this.current.el) {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc