diff --git a/README.md b/README.md new file mode 100644 index 0000000..da2c4b1 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +This repository was created as an investigation into enhancing the CK Editor functions within the Cloud CMS application licensed from Gitana +The code changes were made by Cognizant developers on behalf of OUP +The repository was not handed over to subsequent Cognizant developers who do no believe it is in use in production as of August 2024 +In addition, the OUP instance of Cloud CMS is now running as a SaaS solution from Gitana using the current version, no longer a self-hosted instance diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index f5531de..0084c63 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -387,8 +387,75 @@ define(function (require, exports, module) { "-", "RemoveFormat", "-", - "ShowBlocks", - "A11ychecker" + "ShowBlocks" + ], + [ + "Format", + "Styles" + ] + ], + "removeButtons": null, + "stylesSet": [{ + "name": "Paragraph", + "element": "p" + }, + { + "name": "OUP unbulleted list", + "element": "ul", + "attributes": { + "class": "unbulleted" + } + }, + { + "name": "OUP horizontal list", + "element": "ul", + "attributes": { + "class": "inline" + } + }, + { + "name": "OUP floatLeft Image", + "element": "img", + "attributes": { + "class": "floatLeft" + } + }, + { + "name": "OUP floatRight Image", + "element": "img", + "attributes": { + "class": "floatRight" + } + } + ] + }; + let config10 = { + "height": 100, + "toolbar": [ + [ + "Cut", + "Copy", + "Paste", + "-", + "Undo", + "Redo" + ], + [ + "Link", + "Unlink" + ], + [ + "Italic", + "NumberedList", + "BulletedList", + "Strike", + "Subscript", + "Superscript", + "SpecialChar", + "-", + "RemoveFormat", + "-", + "ShowBlocks" ], [ "Format", @@ -489,7 +556,7 @@ define(function (require, exports, module) { "config6": Object.create(config6), "config7": Object.create(config7), "configAbtPnlTxtHP": Object.create(config7), - "configTextCB": Object.create(config7), + "configTextCB": Object.create(config10), "config8": Object.create(config8) }, @@ -758,7 +825,7 @@ define(function (require, exports, module) { return false; }, - + afterRenderControl: function (model, callback) { var self = this; self.base(model, function () { @@ -840,4 +907,4 @@ define(function (require, exports, module) { Alpaca.registerFieldClass("oup-ckeditor", Alpaca.Fields.OUPCKEditorField); -}); \ No newline at end of file +});