We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e4692eb commit b0a3816Copy full SHA for b0a3816
1 file changed
cms/public/js/accreditation.js
@@ -1,9 +1,9 @@
1
window.tinymce.PluginManager.add("accreditation", function(editor) {
2
// Add a button that inserts the accreditation image withing an img tag.
3
- editor.addButton("accreditation", {
+ editor.ui.registry.addButton("accreditation", {
4
tooltip: "Insert accreditation image",
5
- icon: "icon-accreditation",
6
- onclick: function() {
+ icon: "template",
+ onAction: function() {
7
editor.insertContent(
8
'<img style="display: inline-block;" src="https://www.medicinesresources.nhs.uk/nhs_accreditation.jpg" alt="nhs accreditation logo" width="20" height="20" />'
9
);
0 commit comments