Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-editor-core

Package Overview
Dependencies
Maintainers
1
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-editor-core - npm Package Compare versions

Comparing version 0.6.17 to 0.6.18

8

lib/EditorCore/export/getHTML.js

@@ -54,2 +54,5 @@ 'use strict';

function getStyleText(styleObject) {
if (!styleObject) {
return '';
}
return Object.keys(styleObject).map(function (name) {

@@ -88,4 +91,5 @@ var styleName = processStyleName(name);

if (blockRender) {
resultText = '<' + (blockRender.element || 'div') + ' style="' + getStyleText(customBlockRenderMap.get(blockType).style || {}) + '">';
closeTag = '</' + (blockRender.element || 'div') + '>';
var element = typeof blockRender.element === 'function' ? blockRender.elementTag || 'div' : 'div';
resultText = '<' + (element || 'div') + ' style="' + getStyleText(customBlockRenderMap.get(blockType).style || {}) + '">';
closeTag = '</' + (element || 'div') + '>';
}

@@ -92,0 +96,0 @@ var charMetaList = block.getCharacterList();

{
"name": "rc-editor-core",
"version": "0.6.17",
"version": "0.6.18",
"description": "editor-core ui component for react",

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

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