Skip to content

Commit b0a3816

Browse files
committed
MAS-253 Update usage of depracated tinymce methods
1 parent e4692eb commit b0a3816

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cms/public/js/accreditation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
window.tinymce.PluginManager.add("accreditation", function(editor) {
22
// Add a button that inserts the accreditation image withing an img tag.
3-
editor.addButton("accreditation", {
3+
editor.ui.registry.addButton("accreditation", {
44
tooltip: "Insert accreditation image",
5-
icon: "icon-accreditation",
6-
onclick: function() {
5+
icon: "template",
6+
onAction: function() {
77
editor.insertContent(
88
'<img style="display: inline-block;" src="https://www.medicinesresources.nhs.uk/nhs_accreditation.jpg" alt="nhs accreditation logo" width="20" height="20" />'
99
);

0 commit comments

Comments
 (0)