Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #TinyMCE hotkeys
- Add 'format' to initalization:
- ````
- formats: {text_center: {selector: 'p,h1,h2,h3,h4,h5,table', classes: 'text-center'}}
- ````
- Then add the shortcut in 'setup':
- ````
- setup: function (ed) {
- ed.addShortcut('ctrl+alt+c', 'text_center', function(){
- ed.formatter.apply('text_center');
- });
- }
- ````
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement