@edsdk/n1ed-react
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -39,3 +39,3 @@ "use strict"; | ||
return; | ||
var apiKey = "REACN1ED"; | ||
var apiKey = "N1ED24RR"; | ||
var passedApiKey = this.props.apiKey; | ||
@@ -45,6 +45,3 @@ if (!passedApiKey && this.props.init && this.props.init.apiKey) | ||
if (passedApiKey) { | ||
if (passedApiKey.length === 8) | ||
apiKey = passedApiKey; | ||
else | ||
console.log("Warning: invalid API key passed to N1ED"); | ||
apiKey = passedApiKey; | ||
} | ||
@@ -61,3 +58,3 @@ window.tinymce = null; // to prevent incorrect codebase usage | ||
if (N1ED.loaded) { | ||
var config = JSON.parse(JSON.stringify(window.n1edConfig)); | ||
var config = {}; | ||
if (!!this.props.init) | ||
@@ -94,3 +91,3 @@ this.mergeConfigs(config, this.props.init); | ||
var _this = this; | ||
if (!window.tinymce || !window.n1edConfig) { | ||
if (!window.tinymce) { | ||
setTimeout(function () { | ||
@@ -97,0 +94,0 @@ _this.waitForTinyMCELoaded(callback); |
@@ -36,3 +36,3 @@ var __extends = (this && this.__extends) || (function () { | ||
return; | ||
var apiKey = "REACN1ED"; | ||
var apiKey = "N1ED24RR"; | ||
var passedApiKey = this.props.apiKey; | ||
@@ -42,6 +42,3 @@ if (!passedApiKey && this.props.init && this.props.init.apiKey) | ||
if (passedApiKey) { | ||
if (passedApiKey.length === 8) | ||
apiKey = passedApiKey; | ||
else | ||
console.log("Warning: invalid API key passed to N1ED"); | ||
apiKey = passedApiKey; | ||
} | ||
@@ -58,3 +55,3 @@ window.tinymce = null; // to prevent incorrect codebase usage | ||
if (N1ED.loaded) { | ||
var config = JSON.parse(JSON.stringify(window.n1edConfig)); | ||
var config = {}; | ||
if (!!this.props.init) | ||
@@ -91,3 +88,3 @@ this.mergeConfigs(config, this.props.init); | ||
var _this = this; | ||
if (!window.tinymce || !window.n1edConfig) { | ||
if (!window.tinymce) { | ||
setTimeout(function () { | ||
@@ -94,0 +91,0 @@ _this.waitForTinyMCELoaded(callback); |
{ | ||
"name": "@edsdk/n1ed-react", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "React integration for N1ED editor", | ||
@@ -5,0 +5,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24728
304