Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.
Open
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
77 changes: 72 additions & 5 deletions fields/oup-ckeditor-field.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)

},
Expand Down Expand Up @@ -758,7 +825,7 @@ define(function (require, exports, module) {

return false;
},

afterRenderControl: function (model, callback) {
var self = this;
self.base(model, function () {
Expand Down Expand Up @@ -840,4 +907,4 @@ define(function (require, exports, module) {

Alpaca.registerFieldClass("oup-ckeditor", Alpaca.Fields.OUPCKEditorField);

});
});