From 2578cf10fcc832f7a4ee482f679ccb776b35694b Mon Sep 17 00:00:00 2001 From: ChintanMangukiya-OUP2 <44566022+ChintanMangukiya-OUP2@users.noreply.github.com> Date: Tue, 3 Dec 2019 15:24:10 +0530 Subject: [PATCH 01/11] Reverting Accessibility marker changes --- fields/oup-ckeditor-field.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index f5531de..9471400 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -387,8 +387,7 @@ define(function (require, exports, module) { "-", "RemoveFormat", "-", - "ShowBlocks", - "A11ychecker" + "ShowBlocks" ], [ "Format", @@ -840,4 +839,4 @@ define(function (require, exports, module) { Alpaca.registerFieldClass("oup-ckeditor", Alpaca.Fields.OUPCKEditorField); -}); \ No newline at end of file +}); From 1d7faebc4dd890c8b80efa25ef6db96a745d5b51 Mon Sep 17 00:00:00 2001 From: MounikaB-01 <57654332+MounikaB-01@users.noreply.github.com> Date: Thu, 5 Dec 2019 17:30:32 +0530 Subject: [PATCH 02/11] feature/GCMS-1858 Added A11ychecker in config1 --- fields/oup-ckeditor-field.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index 9471400..44a9fcf 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -35,7 +35,8 @@ define(function (require, exports, module) { "Maximize", "ShowBlocks", "Source", - "Preview" + "Preview", + "A11ychecker" ], [ "Italic", From 5d41b137a35e9993f8efd659ac7394ddc195eaa3 Mon Sep 17 00:00:00 2001 From: ChintanMangukiya-OUP Date: Mon, 9 Dec 2019 16:15:39 +0530 Subject: [PATCH 03/11] GCMS-1917 Editable Block Panel configured with Numbered List --- fields/oup-ckeditor-field.js | 71 +++++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index f5531de..d485b72 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -430,6 +430,75 @@ define(function (require, exports, module) { } ] }; + let config10 = { + "height": 100, + "toolbar": [ + [ + "Cut", + "Copy", + "Paste", + "-", + "Undo", + "Redo" + ], + [ + "Link", + "Unlink" + ], + [ + "Italic", + "NumberedList", + "BulletedList", + "Strike", + "Subscript", + "Superscript", + "SpecialChar", + "-", + "RemoveFormat", + "-", + "ShowBlocks", + "A11ychecker" + ], + [ + "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 config8 = { "toolbar": [ [ @@ -489,7 +558,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) }, From 148283b59c4480080121d04f4e0e004920e67eba Mon Sep 17 00:00:00 2001 From: ChintanMangukiya-OUP Date: Fri, 13 Dec 2019 06:34:26 +0000 Subject: [PATCH 04/11] Removed A11ychecker for Prod deployment --- fields/oup-ckeditor-field.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index 41d0dfb..f9e96be 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -35,8 +35,7 @@ define(function (require, exports, module) { "Maximize", "ShowBlocks", "Source", - "Preview", - "A11ychecker" + "Preview" ], [ "Italic", @@ -456,8 +455,7 @@ define(function (require, exports, module) { "-", "RemoveFormat", "-", - "ShowBlocks", - "A11ychecker" + "ShowBlocks" ], [ "Format", From 72d6769e2a5519d0222454a6b53ce6c7879484d2 Mon Sep 17 00:00:00 2001 From: MounikaB-01 <57654332+MounikaB-01@users.noreply.github.com> Date: Mon, 30 Dec 2019 14:10:38 +0530 Subject: [PATCH 05/11] Accessibilty Check --- fields/oup-ckeditor-field.js | 1 + 1 file changed, 1 insertion(+) diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index f9e96be..cb80b2a 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -35,6 +35,7 @@ define(function (require, exports, module) { "Maximize", "ShowBlocks", "Source", + "A11ychecker", "Preview" ], [ From 1b57a53f8cdfb5ba344c9592eb667a7a9cb03998 Mon Sep 17 00:00:00 2001 From: ChintanMangukiya-OUP Date: Wed, 8 Jan 2020 19:44:51 +0530 Subject: [PATCH 06/11] GCMS-1903 warning message for ckeditor field --- fields/oup-ckeditor-field.js | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index cb80b2a..fa50f02 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -826,10 +826,21 @@ define(function (require, exports, module) { return false; }, - + setValue: function (data) { + var self = this; + this.base(data); + if (!$("#warning-message").length) { + $(self.getFieldEl()).append("WYSIWYG field formatting is an approximation of the styles you will see on the site"); + } + if(!self.getValue()){ + self.setDefault(); + } + }, afterRenderControl: function (model, callback) { var self = this; - self.base(model, function () { + this.base(model, function () { + $(self.getFieldEl()).remove("#warning-message"); + $(self.getFieldEl()).append("WYSIWYG field formatting is an approximation of the styles you will see on the site"); callback(); }); }, From afa14706b924d098802d525f395874ad21c4221f Mon Sep 17 00:00:00 2001 From: ChintanMangukiya-OUP Date: Wed, 8 Jan 2020 19:46:40 +0530 Subject: [PATCH 07/11] GCMS-1903 --- fields/oup-ckeditor-field.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index fa50f02..fcc48d3 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -829,7 +829,7 @@ define(function (require, exports, module) { setValue: function (data) { var self = this; this.base(data); - if (!$("#warning-message").length) { + if (!$("#warning-message2").length) { $(self.getFieldEl()).append("WYSIWYG field formatting is an approximation of the styles you will see on the site"); } if(!self.getValue()){ @@ -839,7 +839,7 @@ define(function (require, exports, module) { afterRenderControl: function (model, callback) { var self = this; this.base(model, function () { - $(self.getFieldEl()).remove("#warning-message"); + $(self.getFieldEl()).remove("#warning-message2"); $(self.getFieldEl()).append("WYSIWYG field formatting is an approximation of the styles you will see on the site"); callback(); }); From 3e1135a40abb5741d5a6ea8f72c0f17af06e10d3 Mon Sep 17 00:00:00 2001 From: ChintanMangukiya-OUP Date: Wed, 8 Jan 2020 19:50:26 +0530 Subject: [PATCH 08/11] GCMS-1903 --- fields/oup-ckeditor-field.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index fcc48d3..3d2bb7e 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -829,8 +829,8 @@ define(function (require, exports, module) { setValue: function (data) { var self = this; this.base(data); - if (!$("#warning-message2").length) { - $(self.getFieldEl()).append("WYSIWYG field formatting is an approximation of the styles you will see on the site"); + if (!$(".warning-message2").length) { + $(self.getFieldEl()).append("WYSIWYG field formatting is an approximation of the styles you will see on the site"); } if(!self.getValue()){ self.setDefault(); @@ -839,8 +839,8 @@ define(function (require, exports, module) { afterRenderControl: function (model, callback) { var self = this; this.base(model, function () { - $(self.getFieldEl()).remove("#warning-message2"); - $(self.getFieldEl()).append("WYSIWYG field formatting is an approximation of the styles you will see on the site"); + $(self.getFieldEl()).remove(".warning-message2"); + $(self.getFieldEl()).append("WYSIWYG field formatting is an approximation of the styles you will see on the site"); callback(); }); }, From 228080cdb62b6f7d090321dfe0ac0567b72c977b Mon Sep 17 00:00:00 2001 From: ChintanMangukiya-OUP Date: Wed, 8 Jan 2020 19:56:52 +0530 Subject: [PATCH 09/11] GCMS-1903 --- fields/oup-ckeditor-field.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index 3d2bb7e..4f97a32 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -826,21 +826,10 @@ define(function (require, exports, module) { return false; }, - setValue: function (data) { - var self = this; - this.base(data); - if (!$(".warning-message2").length) { - $(self.getFieldEl()).append("WYSIWYG field formatting is an approximation of the styles you will see on the site"); - } - if(!self.getValue()){ - self.setDefault(); - } - }, + afterRenderControl: function (model, callback) { var self = this; - this.base(model, function () { - $(self.getFieldEl()).remove(".warning-message2"); - $(self.getFieldEl()).append("WYSIWYG field formatting is an approximation of the styles you will see on the site"); + self.base(model, function () { callback(); }); }, From a7b9daf48eeab7cbc1379689682e46d25f4bfe06 Mon Sep 17 00:00:00 2001 From: MounikaB-01 <57654332+MounikaB-01@users.noreply.github.com> Date: Thu, 16 Jan 2020 12:41:19 +0530 Subject: [PATCH 10/11] Revert "Merge pull request #8 from OUP/feature/GCMS-1935" This reverts commit 58aa1288e09a4e0cd6327a8edbd378da24f5dd3b, reversing changes made to 148283b59c4480080121d04f4e0e004920e67eba. --- fields/oup-ckeditor-field.js | 1 - 1 file changed, 1 deletion(-) diff --git a/fields/oup-ckeditor-field.js b/fields/oup-ckeditor-field.js index 4f97a32..0084c63 100644 --- a/fields/oup-ckeditor-field.js +++ b/fields/oup-ckeditor-field.js @@ -35,7 +35,6 @@ define(function (require, exports, module) { "Maximize", "ShowBlocks", "Source", - "A11ychecker", "Preview" ], [ From abca9c1b34903d2d7f8a173bd8382293d7a1a734 Mon Sep 17 00:00:00 2001 From: Robert Dyer <162336540+robert-dyer-oup@users.noreply.github.com> Date: Wed, 14 Aug 2024 10:52:31 +0100 Subject: [PATCH 11/11] Create README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 README.md 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