Removed the bundle which shouldn't be in the repository; Added the basic view that was referenced in the database still; Added custom classes that now work to the CKEditor.

This commit is contained in:
2021-01-14 09:43:14 -08:00
parent 9b8760fd34
commit d16c76afb4
11 changed files with 80 additions and 84 deletions

23
app.js
View File

@@ -1,6 +1,6 @@
var path = require('path');
let path = require('path');
var apos = require('apostrophe')({
let apos = require('apostrophe')({
// Export for apostrophe-monitor which manages restarting the apostrophe system (not the whole nodeJS process) when changes are made.
// See https://github.com/apostrophecms/apostrophe-monitor
root: module,
@@ -39,14 +39,17 @@ var apos = require('apostrophe')({
'apostrophe-db': {
uri: process.env.MONGO_URL
},
sanitizeHtml: {
allowedAttributes: {
'p': ['apos-indent1', 'apos-indent2']
},
allowedClasses: {
'p': ['apos-indent1', 'apos-indent2']
}
}
// 'apostrophe-rich-text-widgets': {
// sanitizeHtml: {
// allowedAttributes: {
// 'p': ['apos-indent1', 'apos-indent2']
// },
// allowedClasses: {
// 'p': ['apos-indent1', 'apos-indent2'],
// 'p': ['testClass']
// }
// }
// }
// Was having some issues with overlaying menus.
//'apostrophe-tiptap-rich-text-widgets': {}
}