Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Arteneo
/
CKEditor
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Authored by
Arek Wtykło
2017-11-10 11:56:30 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dee784247671e537be7a6f887f8156129fe14d31
dee78424
1 parent
862ff696
Dodanie nbsp (ctrl+space)
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletions
config.js
plugins/nbsp/plugin.js
config.js
View file @
dee7842
...
...
@@ -17,5 +17,5 @@ CKEDITOR.editorConfig = function( config ) {
];
config
.
disableNativeSpellChecker
=
false
;
config
.
extraPlugins
=
'autolink,image2,widget,widgetselection,lineutils'
;
config
.
extraPlugins
=
'autolink,image2,widget,widgetselection,lineutils
,nbsp
'
;
};
...
...
plugins/nbsp/plugin.js
0 → 100644
View file @
dee7842
/**
* @file insert Non-Breaking SPace for CKEditor
* Copyright (C) 2014 Alfonso Martínez de Lizarrondo
* Create a command and enable the Ctrl+Space shortcut to insert a non-breaking space in CKEditor
*
*/
CKEDITOR
.
plugins
.
add
(
'nbsp'
,
{
init
:
function
(
editor
)
{
// Insert if Ctrl+Space is pressed:
editor
.
addCommand
(
'insertNbsp'
,
{
exec
:
function
(
editor
)
{
editor
.
insertHtml
(
' '
);
}
});
editor
.
setKeystroke
(
CKEDITOR
.
CTRL
+
32
/* space */
,
'insertNbsp'
);
}
}
);
...
...
Please
register
or
login
to post a comment