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

[FEATURE] Add shy plugin from Sigfried Arnold

parent 1eba3f6f
No related branches found
No related tags found
No related merge requests found
Resources/Public/JavaScript/TinymcePlugins/shy/icon.png

1.63 KiB

tinymce.addI18n('de', {
'Soft hyphen': 'Bedingter Trennstrich',
});
\ No newline at end of file
/**
* plugin.js for TinyMCE soft hyphen (shy)
*
*/
tinymce.PluginManager.requireLangPack('shy', 'de');
tinymce.PluginManager.add('shy', function(editor) {
editor.addCommand('mceShy', function() {
editor.insertContent(
(editor.plugins.visualchars && editor.plugins.visualchars.state) ?
'<span class="mce-shy">&shy;</span>' : '&shy;'
);
editor.dom.setAttrib(editor.dom.select('span.mce-shy'), 'data-mce-bogus', '1');
});
editor.addButton('shy', {
title: 'Soft hyphen',
image: tinyMCE.baseURL + '/plugins/shy/icon.png',
cmd: 'mceShy'
});
editor.addMenuItem('shy', {
text: 'Soft hyphen',
cmd: 'mceShy',
context: 'insert'
});
});
\ No newline at end of file
tinymce.PluginManager.requireLangPack("shy","de");tinymce.PluginManager.add("shy",function(e){e.addCommand("mceShy",function(){e.insertContent(e.plugins.visualchars&&e.plugins.visualchars.state?'<span class="mce-shy">&shy;</span>':"&shy;");e.dom.setAttrib(e.dom.select("span.mce-shy"),"data-mce-bogus","1")});e.addButton("shy",{title:"Soft hyphen",image:tinyMCE.baseURL+"/plugins/shy/icon.png",cmd:"mceShy"});e.addMenuItem("shy",{text:"Soft hyphen",cmd:"mceShy",context:"insert"})})
\ No newline at end of file
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