add files
This commit is contained in:
25
assets/js/vendor/tinymce/tinymce_quotebutton.js
vendored
Normal file
25
assets/js/vendor/tinymce/tinymce_quotebutton.js
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
(function() {
|
||||
tinymce.PluginManager.add( 'add_quotes', function( editor, url ) {
|
||||
|
||||
editor.addButton('open_quote', {
|
||||
title: 'Открывающая кавычка',
|
||||
cmd: 'open_quote',
|
||||
text: ' « '
|
||||
});
|
||||
editor.addCommand('open_quote', function() {
|
||||
editor.execCommand('mceReplaceContent', false, "«");
|
||||
return;
|
||||
});
|
||||
|
||||
editor.addButton('close_quote', {
|
||||
title: 'Закрывающая кавычка',
|
||||
cmd: 'close_quote',
|
||||
text: ' » '
|
||||
});
|
||||
editor.addCommand('close_quote', function() {
|
||||
editor.execCommand('mceReplaceContent', false, "»");
|
||||
return;
|
||||
});
|
||||
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user