CKEditor components replaced by CKEditor 5.
Remains of the sandboxed CKEditor - will be removed, but the version here may be useful for another editor that is prone to XSS (like Summernote).
This commit is contained in:
parent
213039c141
commit
eacdc74c29
43 changed files with 12499 additions and 1382 deletions
|
@ -5,7 +5,6 @@ const config = require('config');
|
|||
const forms = require('../models/forms');
|
||||
const shares = require('../models/shares');
|
||||
const urls = require('./urls');
|
||||
const { AppType } = require('../shared/app');
|
||||
|
||||
|
||||
async function getAnonymousConfig(context, appType) {
|
||||
|
@ -26,6 +25,11 @@ async function getAnonymousConfig(context, appType) {
|
|||
}
|
||||
|
||||
async function getAuthenticatedConfig(context) {
|
||||
const globalPermissions = {};
|
||||
for (const perm of shares.getGlobalPermissions(context)) {
|
||||
globalPermissions[perm] = true;
|
||||
}
|
||||
|
||||
return {
|
||||
defaultCustomFormValues: await forms.getDefaultCustomFormValues(),
|
||||
user: {
|
||||
|
@ -33,7 +37,7 @@ async function getAuthenticatedConfig(context) {
|
|||
username: context.user.username,
|
||||
namespace: context.user.namespace
|
||||
},
|
||||
globalPermissions: shares.getGlobalPermissions(context),
|
||||
globalPermissions,
|
||||
editors: config.editors,
|
||||
mosaico: config.mosaico,
|
||||
verpEnabled: config.verp.enabled
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue