Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
TYPO3
tinymce
Commits
9046e51e
Commit
9046e51e
authored
Mar 21, 2015
by
Stefan Galinski
🎮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEATURE] Add shy plugin from Sigfried Arnold
parent
1eba3f6f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
0 deletions
+32
-0
Resources/Public/JavaScript/TinymcePlugins/shy/icon.png
Resources/Public/JavaScript/TinymcePlugins/shy/icon.png
+0
-0
Resources/Public/JavaScript/TinymcePlugins/shy/langs/de.js
Resources/Public/JavaScript/TinymcePlugins/shy/langs/de.js
+3
-0
Resources/Public/JavaScript/TinymcePlugins/shy/plugin.js
Resources/Public/JavaScript/TinymcePlugins/shy/plugin.js
+28
-0
Resources/Public/JavaScript/TinymcePlugins/shy/plugin.min.js
Resources/Public/JavaScript/TinymcePlugins/shy/plugin.min.js
+1
-0
No files found.
Resources/Public/JavaScript/TinymcePlugins/shy/icon.png
0 → 100755
View file @
9046e51e
1.63 KB
Resources/Public/JavaScript/TinymcePlugins/shy/langs/de.js
0 → 100755
View file @
9046e51e
tinymce
.
addI18n
(
'
de
'
,
{
'
Soft hyphen
'
:
'
Bedingter Trennstrich
'
,
});
\ No newline at end of file
Resources/Public/JavaScript/TinymcePlugins/shy/plugin.js
0 → 100755
View file @
9046e51e
/**
* plugin.js for TinyMCE soft hyphen (shy)
*
*/
tinymce
.
PluginManager
.
requireLangPack
(
'
shy
'
,
'
de
'
);
tinymce
.
PluginManager
.
add
(
'
shy
'
,
function
(
editor
)
{
editor
.
addCommand
(
'
mceShy
'
,
function
()
{
editor
.
insertContent
(
(
editor
.
plugins
.
visualchars
&&
editor
.
plugins
.
visualchars
.
state
)
?
'
<span class="mce-shy">­</span>
'
:
'
­
'
);
editor
.
dom
.
setAttrib
(
editor
.
dom
.
select
(
'
span.mce-shy
'
),
'
data-mce-bogus
'
,
'
1
'
);
});
editor
.
addButton
(
'
shy
'
,
{
title
:
'
Soft hyphen
'
,
image
:
tinyMCE
.
baseURL
+
'
/plugins/shy/icon.png
'
,
cmd
:
'
mceShy
'
});
editor
.
addMenuItem
(
'
shy
'
,
{
text
:
'
Soft hyphen
'
,
cmd
:
'
mceShy
'
,
context
:
'
insert
'
});
});
\ No newline at end of file
Resources/Public/JavaScript/TinymcePlugins/shy/plugin.min.js
0 → 100755
View file @
9046e51e
tinymce
.
PluginManager
.
requireLangPack
(
"
shy
"
,
"
de
"
);
tinymce
.
PluginManager
.
add
(
"
shy
"
,
function
(
e
){
e
.
addCommand
(
"
mceShy
"
,
function
(){
e
.
insertContent
(
e
.
plugins
.
visualchars
&&
e
.
plugins
.
visualchars
.
state
?
'
<span class="mce-shy">­</span>
'
:
"
­
"
);
e
.
dom
.
setAttrib
(
e
.
dom
.
select
(
"
span.mce-shy
"
),
"
data-mce-bogus
"
,
"
1
"
)});
e
.
addButton
(
"
shy
"
,{
title
:
"
Soft hyphen
"
,
image
:
tinyMCE
.
baseURL
+
"
/plugins/shy/icon.png
"
,
cmd
:
"
mceShy
"
});
e
.
addMenuItem
(
"
shy
"
,{
text
:
"
Soft hyphen
"
,
cmd
:
"
mceShy
"
,
context
:
"
insert
"
})})
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment