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:
Tomas Bures 2018-11-03 21:46:23 +01:00
parent 213039c141
commit eacdc74c29
43 changed files with 12499 additions and 1382 deletions

View file

@ -24,7 +24,7 @@ async function listTree(context) {
// Build a tree
const rows = await knex('namespaces')
.innerJoin(entityType.permissionsTable, {
.leftJoin(entityType.permissionsTable, {
[entityType.permissionsTable + '.entity']: 'namespaces.id',
[entityType.permissionsTable + '.user']: context.user.id
})
@ -63,7 +63,7 @@ async function listTree(context) {
entry.key = row.id;
entry.title = row.name;
entry.description = row.description;
entry.permissions = row.permissions.split(';');
entry.permissions = row.permissions ? row.permissions.split(';') : [];
}
// Prune out the inaccessible namespaces
@ -160,7 +160,7 @@ async function updateWithConsistencyCheck(context, entity) {
throw new interoperableErrors.DependencyNotFoundError();
}
if (iter.id == entity.id) {
if (iter.id === entity.id) {
throw new interoperableErrors.LoopDetectedError();
}
}