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

@tinymce/tinymce-react

Package Overview
Dependencies
Maintainers
2
Versions
367
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinymce/tinymce-react - npm Package Compare versions

Comparing version 3.11.0-feature.20210322062210035.12686c4 to 3.11.0-feature.20210322064626122.2955e0b

8

lib/cjs/main/ts/components/Editor.js

@@ -90,8 +90,8 @@ "use strict";

// check for changes that happened since tinymce.init() was called
var value = _this.getInitialValue();
var initialValue = _this.getInitialValue();
_this.currentContent = (_a = _this.currentContent) !== null && _a !== void 0 ? _a : editor.getContent();
if (!_this.currentContent && _this.currentContent !== value) {
_this.currentContent = value;
if (_this.currentContent !== initialValue) {
_this.currentContent = initialValue;
// same as resetContent in TinyMCE 5
editor.setContent(value);
editor.setContent(initialValue);
editor.undoManager.clear();

@@ -98,0 +98,0 @@ editor.undoManager.add();

@@ -87,8 +87,8 @@ /**

// check for changes that happened since tinymce.init() was called
var value = _this.getInitialValue();
var initialValue = _this.getInitialValue();
_this.currentContent = (_a = _this.currentContent) !== null && _a !== void 0 ? _a : editor.getContent();
if (!_this.currentContent && _this.currentContent !== value) {
_this.currentContent = value;
if (_this.currentContent !== initialValue) {
_this.currentContent = initialValue;
// same as resetContent in TinyMCE 5
editor.setContent(value);
editor.setContent(initialValue);
editor.undoManager.clear();

@@ -95,0 +95,0 @@ editor.undoManager.add();

@@ -69,4 +69,4 @@ {

},
"version": "3.11.0-feature.20210322062210035.12686c4",
"version": "3.11.0-feature.20210322064626122.2955e0b",
"name": "@tinymce/tinymce-react"
}
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