Skip to content

Commit

Permalink
Update x button on cke editor toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
Pinkeltje authored Jul 18, 2024
1 parent a6f47ef commit 8853483
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/media/kunena/core/js/plugins/x/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
**/

CKEDITOR.plugins.add( 'x', {
icons: 'x',
icons: 'x_social',
init: function( editor ) {
editor.addCommand( 'insertTwitter', {
exec: function( editor ) {
var selectedtext = editor.getSelection().getSelectedText();
editor.insertHtml( '[tweet]' + selectedtext + '[/tweet]' );
}
});
editor.ui.addButton( 'X', {
editor.ui.addButton( 'X_Social', {
label: Joomla.Text._('COM_KUNENA_EDITOR_TWEET'),
command: 'insertTwitter',
toolbar: 'social'
});
}
});
});

0 comments on commit 8853483

Please sign in to comment.