Skip to content
Snippets Groups Projects
Commit 73117b76 authored by Stefan Galinski's avatar Stefan Galinski :video_game:
Browse files

Merge branch 'master' into 'master'

Master

See merge request !1
parents 8a68e216 74460d16
No related branches found
No related tags found
No related merge requests found
......@@ -116,14 +116,16 @@ var plugin = tinymce.PluginManager.add('typo3filemanager', function(editor, url)
title: 'TYPO3 Link',
icon: 'link',
shortcut: 'Ctrl+K',
onclick: openLinkDialog
onclick: openLinkDialog,
stateSelector: 'a[href]'
});
editor.addButton('typo3image', {
title: 'TYPO3 Image',
icon: 'image',
shortcut: 'Ctrl+L',
onclick: openImageDialog
onclick: openImageDialog,
stateSelector: 'img[src]'
});
// add the menu entries
......@@ -133,7 +135,8 @@ var plugin = tinymce.PluginManager.add('typo3filemanager', function(editor, url)
prependToContext: true,
shortcut: 'Ctrl+K',
icon: 'link',
onclick: openLinkDialog
onclick: openLinkDialog,
stateSelector: 'a[href]'
});
editor.addMenuItem('typo3image', {
......@@ -142,7 +145,8 @@ var plugin = tinymce.PluginManager.add('typo3filemanager', function(editor, url)
prependToContext: true,
shortcut: 'Ctrl+L',
icon: 'image',
onclick: openImageDialog
onclick: openImageDialog,
stateSelector: 'img[src]'
});
// initialize the shortcuts
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment