Socket
Socket
Sign inDemoInstall

@saltcorn/ckeditor4

Package Overview
Dependencies
7
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.2 to 0.2.3

13

index.js

@@ -12,2 +12,3 @@ const {

const File = require("@saltcorn/data/models/file");
const User = require("@saltcorn/data/models/user");
const headers = features?.deep_public_plugin_serve

@@ -37,2 +38,4 @@ ? [

const dirs = File.allDirectories ? await File.allDirectories() : null;
const roles = await User.get_roles();
return [

@@ -81,2 +84,8 @@ {

: []),
{
name: "min_role_read",
label: "Min role read files",
input_type: "select",
options: roles.map((r) => ({ value: r.id, label: r.role })),
},
];

@@ -230,3 +239,5 @@ },

formData.append( 'file', fileLoader.file, fileLoader.fileName );
formData.append( 'min_role_read',${public_user_role} );
formData.append( 'min_role_read',${
attrs?.min_role_read || public_user_role
} );
${

@@ -233,0 +244,0 @@ attrs.folder

2

package.json
{
"name": "@saltcorn/ckeditor4",
"version": "0.2.2",
"version": "0.2.3",
"description": "CKEditor4 editor for HTML fields",

@@ -5,0 +5,0 @@ "main": "index.js",

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