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
Marcin Wtykło
2017-10-30 19:26:55 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
39938515aae2ab4912bf36a33acaa34863e17946
39938515
1 parent
320ce065
nbsp
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
plugins/nbsp/plugin.js
plugins/nbsp/plugin.js
0 → 100644
View file @
3993851
/**
* @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