只读模式
group, 分享
评论更多问题
博客标签总是存在一个
This commit is contained in:
lealife
2015-06-15 18:01:48 +08:00
parent 7e458bb433
commit 6987a38820
1453 changed files with 114561 additions and 91536 deletions

6
public/tinymce/plugins/nonbreaking/plugin.js Normal file → Executable file
View File

@ -16,12 +16,14 @@ tinymce.PluginManager.add('nonbreaking', function(editor) {
editor.addCommand('mceNonBreaking', function() {
editor.insertContent(
(editor.plugins.visualchars && editor.plugins.visualchars.state) ?
'<span data-mce-bogus="1" class="mce-nbsp">&nbsp;</span>' : '&nbsp;'
'<span class="mce-nbsp">&nbsp;</span>' : '&nbsp;'
);
editor.dom.setAttrib(editor.dom.select('span.mce-nbsp'), 'data-mce-bogus', '1');
});
editor.addButton('nonbreaking', {
title: 'Insert nonbreaking space',
title: 'Nonbreaking space',
cmd: 'mceNonBreaking'
});