v1.0
只读模式 group, 分享 评论更多问题 博客标签总是存在一个
This commit is contained in:
6
public/tinymce/plugins/nonbreaking/plugin.js
Normal file → Executable file
6
public/tinymce/plugins/nonbreaking/plugin.js
Normal file → Executable 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"> </span>' : ' '
|
||||
'<span class="mce-nbsp"> </span>' : ' '
|
||||
);
|
||||
|
||||
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'
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user