Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tinymce4_rte
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TYPO3
tinymce4_rte
Commits
f69ecd2c
Commit
f69ecd2c
authored
9 years ago
by
Fabian Galinski
Browse files
Options
Downloads
Patches
Plain Diff
[FEATURE] Minification of the javascriptfiles
parent
5b7cbd4a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Configuration/TinyMce/standard.js
+1
-1
1 addition, 1 deletion
Configuration/TinyMce/standard.js
Resources/Public/Plugins/Typo3FileManager/typo3filemanager.min.js
+1
-1
1 addition, 1 deletion
...s/Public/Plugins/Typo3FileManager/typo3filemanager.min.js
with
2 additions
and
2 deletions
Configuration/TinyMce/standard.js
+
1
−
1
View file @
f69ecd2c
...
...
@@ -13,7 +13,7 @@ tinymce.init({
toolbar1
:
'
undo redo | styleselect | bold italic | typo3link unlink |
'
+
'
alignleft aligncenter alignright alignjustify | bullist numlist outdent indent
'
,
external_plugins
:
{
typo3filemanager
:
'
EXT:tinymce4_rte/Resources/Public/Plugins/Typo3FileManager/typo3filemanager.js
'
,
typo3filemanager
:
'
EXT:tinymce4_rte/Resources/Public/Plugins/Typo3FileManager/typo3filemanager.
min.
js
'
,
shy
:
'
EXT:tinymce/Resources/Public/JavaScript/TinymcePlugins/shy/plugin.min.js
'
},
// Currently not in use typo3image
...
...
This diff is collapsed.
Click to expand it.
Resources/Public/Plugins/Typo3FileManager/typo3filemanager.min.js
+
1
−
1
View file @
f69ecd2c
tinymce
.
PluginManager
.
requireLangPack
(
"
typo3filemanager
"
,
"
en_GB,de
"
);
var
plugin
=
tinymce
.
PluginManager
.
add
(
"
typo3filemanager
"
,
function
(
t
){
var
e
=
function
(
e
,
n
){
var
i
=
t
.
id
;
return
e
+
(
-
1
===
e
.
indexOf
(
"
?
"
)?
"
?
"
:
"
&
"
)
+
"
&RTEtsConfigParams=
"
+
RTEarea
[
i
].
rteConfiguration
+
"
&sys_language_content=
"
+
RTEarea
[
i
].
sys_language_content
+
"
&contentTypo3Language=
"
+
RTEarea
[
i
].
typo3ContentLanguage
+
"
&editorNo=
"
+
RTEarea
[
i
].
editorNo
+
(
n
?
n
:
""
)},
n
=
function
(){
var
n
=
t
.
selection
.
getNode
(),
i
=
t
.
dom
.
getParent
(
n
,
"
img[src]
"
),
o
=
""
;
i
&&
(
o
=
"
&act=image
"
),
t
.
windowManager
.
open
({
title
:
"
TYPO3 Image
"
,
url
:
e
(
RTEarea
.
linkToImageModule
,
o
),
width
:
800
,
height
:
600
,
buttons
:[{
text
:
"
Close
"
,
onclick
:
"
close
"
}]})},
i
=
function
(){
var
n
=
t
.
selection
.
getNode
(),
i
=
t
.
dom
.
getParent
(
n
,
"
a[href]
"
),
o
=
""
;
i
&&
(
o
=
"
&curUrl[href]=
"
+
encodeURIComponent
(
i
.
href
),
i
.
target
&&
(
o
+=
"
&curUrl[target]=
"
+
encodeURIComponent
(
i
.
target
)),
i
.
className
&&
(
o
+=
"
&curUrl[class]=
"
+
encodeURIComponent
(
i
.
className
)),
i
.
title
&&
(
o
+=
"
&curUrl[title]=
"
+
encodeURIComponent
(
i
.
title
))),
t
.
windowManager
.
open
({
title
:
"
TYPO3 Link
"
,
url
:
e
(
RTEarea
.
linkToLinkModule
,
o
),
width
:
800
,
height
:
600
,
buttons
:[{
text
:
"
Close
"
,
onclick
:
"
close
"
}]})};
t
.
addButton
(
"
typo3link
"
,{
title
:
"
TYPO3 Link
"
,
icon
:
"
link
"
,
shortcut
:
"
Ctrl+K
"
,
onclick
:
i
}),
t
.
addButton
(
"
typo3image
"
,{
title
:
"
TYPO3 Image
"
,
icon
:
"
image
"
,
shortcut
:
"
Ctrl+L
"
,
onclick
:
n
}),
t
.
addMenuItem
(
"
typo3link
"
,{
text
:
"
TYPO3 Link
"
,
context
:
"
insert
"
,
prependToContext
:
!
0
,
shortcut
:
"
Ctrl+K
"
,
icon
:
"
link
"
,
onclick
:
i
}),
t
.
addMenuItem
(
"
typo3image
"
,{
text
:
"
TYPO3 Image
"
,
context
:
"
insert
"
,
prependToContext
:
!
0
,
shortcut
:
"
Ctrl+L
"
,
icon
:
"
image
"
,
onclick
:
n
}),
t
.
addShortcut
(
"
Ctrl+K
"
,
""
,
i
),
t
.
addShortcut
(
"
Ctrl+L
"
,
""
,
n
)});
plugin
.
createLink
=
function
(
t
,
e
,
n
,
i
,
o
){
var
c
=
{
href
:
t
,
target
:
e
?
e
:
null
,
"
class
"
:
n
?
n
:
null
,
title
:
i
?
i
:
null
,
"
data-htmlarea-external
"
:
null
};
for
(
var
a
in
o
)
o
.
hasOwnProperty
(
a
)
&&
(
c
[
a
]
=
o
[
a
]);
var
r
=
tinymce
.
activeEditor
.
selection
.
getNode
(),
l
=
tinymce
.
activeEditor
.
dom
.
getParent
(
r
,
"
a[href]
"
);
l
?(
tinymce
.
activeEditor
.
focus
(),
tinymce
.
activeEditor
.
dom
.
setAttribs
(
l
,
c
),
tinymce
.
activeEditor
.
selection
.
select
(
l
),
tinymce
.
activeEditor
.
undoManager
.
add
()):
tinymce
.
activeEditor
.
execCommand
(
"
mceInsertLink
"
,
!
1
,
c
),
tinymce
.
activeEditor
.
windowManager
.
getWindows
()[
0
].
close
()},
plugin
.
unLink
=
function
(){
tinymce
.
activeEditor
.
execCommand
(
"
unlink
"
),
tinymce
.
activeEditor
.
windowManager
.
getWindows
()[
0
].
close
()},
plugin
.
insertImage
=
function
(
t
){
tinymce
.
activeEditor
.
focus
(),
tinymce
.
activeEditor
.
selection
.
setContent
(
t
),
tinymce
.
activeEditor
.
undoManager
.
add
(),
tinymce
.
activeEditor
.
windowManager
.
getWindows
()[
0
].
close
()},
plugin
.
getButton
=
function
(){
return
null
},
plugin
.
getSelectedImage
=
function
(){
var
t
=
tinymce
.
activeEditor
.
$
(
tinymce
.
activeEditor
.
selection
.
getNode
());
return
t
.
length
?
t
.
closest
(
"
img[src]
"
):{}},
plugin
.
close
=
function
(){
tinymce
.
activeEditor
.
windowManager
.
getWindows
()[
0
].
close
()};
\ No newline at end of file
tinymce
.
PluginManager
.
requireLangPack
(
"
typo3filemanager
"
,
"
en_GB,de
"
);
var
plugin
=
tinymce
.
PluginManager
.
add
(
"
typo3filemanager
"
,
function
(
t
,
e
){
var
n
=
function
(
e
,
n
){
var
i
=
t
.
id
;
return
e
+
(
-
1
===
e
.
indexOf
(
"
?
"
)?
"
?
"
:
"
&
"
)
+
"
&RTEtsConfigParams=
"
+
RTEarea
[
i
].
RTEtsConfigParams
+
"
&sys_language_content=
"
+
RTEarea
[
i
].
sys_language_content
+
"
&contentTypo3Language=
"
+
RTEarea
[
i
].
typo3ContentLanguage
+
"
&editorNo=
"
+
RTEarea
[
i
].
number
+
(
n
?
n
:
""
)},
i
=
function
(){
var
e
=
t
.
selection
.
getNode
(),
i
=
t
.
dom
.
getParent
(
e
,
"
a[href]
"
),
o
=
""
;
i
&&
(
o
=
"
&curUrl[url]=
"
+
encodeURIComponent
(
i
.
href
),
i
.
target
&&
(
o
+=
"
&curUrl[target]=
"
+
encodeURIComponent
(
i
.
target
)),
i
.
className
&&
(
o
+=
"
&curUrl[class]=
"
+
encodeURIComponent
(
i
.
className
)),
i
.
title
&&
(
o
+=
"
&curUrl[title]=
"
+
encodeURIComponent
(
i
.
title
))),
t
.
windowManager
.
open
({
title
:
"
TYPO3 Link
"
,
url
:
n
(
RTEarea
[
t
.
id
].
buttons
.
link
.
pathLinkModule
,
o
),
width
:
800
,
height
:
600
,
buttons
:[{
text
:
"
Close
"
,
onclick
:
"
close
"
}]})};
t
.
addButton
(
"
typo3link
"
,{
title
:
"
TYPO3 Link
"
,
icon
:
"
link
"
,
shortcut
:
"
Ctrl+K
"
,
onclick
:
i
,
stateSelector
:
"
a[href]
"
}),
t
.
addButton
(
"
unlink
"
,{
title
:
"
Unlink
"
,
icon
:
"
unlink
"
,
shortcut
:
"
Ctrl+M
"
,
cmd
:
"
unlink
"
,
stateSelector
:
"
a[href]
"
}),
t
.
addMenuItem
(
"
unlink
"
,{
text
:
"
Unlink
"
,
context
:
"
insert
"
,
prependToContext
:
!
0
,
shortcut
:
"
Ctrl+M
"
,
icon
:
"
unlink
"
,
cmd
:
"
unlink
"
,
stateSelector
:
"
a[href]
"
}),
t
.
addMenuItem
(
"
typo3link
"
,{
text
:
"
TYPO3 Link
"
,
context
:
"
insert
"
,
prependToContext
:
!
0
,
shortcut
:
"
Ctrl+K
"
,
icon
:
"
link
"
,
onclick
:
i
,
stateSelector
:
"
a[href]
"
}),
t
.
addShortcut
(
"
Ctrl+K
"
,
""
,
i
),
t
.
addShortcut
(
"
Ctrl+M
"
,
""
,
"
unlink
"
)});
plugin
.
createLink
=
function
(
t
,
e
,
n
,
i
,
o
){
var
a
=
{
href
:
t
,
target
:
e
?
e
:
null
,
"
class
"
:
n
?
n
:
null
,
title
:
i
?
i
:
null
,
"
data-htmlarea-external
"
:
null
};
for
(
var
r
in
o
)
o
.
hasOwnProperty
(
r
)
&&
(
a
[
r
]
=
o
[
r
]);
var
c
=
tinymce
.
activeEditor
.
selection
.
getNode
(),
l
=
tinymce
.
activeEditor
.
dom
.
getParent
(
c
,
"
a[href]
"
);
l
?(
tinymce
.
activeEditor
.
focus
(),
tinymce
.
activeEditor
.
dom
.
setAttribs
(
l
,
a
),
tinymce
.
activeEditor
.
selection
.
select
(
l
),
tinymce
.
activeEditor
.
undoManager
.
add
()):
tinymce
.
activeEditor
.
execCommand
(
"
mceInsertLink
"
,
!
1
,
a
),
tinymce
.
activeEditor
.
windowManager
.
getWindows
()[
0
].
close
()},
plugin
.
unLink
=
function
(){
tinymce
.
activeEditor
.
execCommand
(
"
unlink
"
),
tinymce
.
activeEditor
.
windowManager
.
getWindows
()[
0
].
close
()},
plugin
.
insertImage
=
function
(
t
){
tinymce
.
activeEditor
.
focus
(),
tinymce
.
activeEditor
.
selection
.
setContent
(
t
),
tinymce
.
activeEditor
.
undoManager
.
add
(),
tinymce
.
activeEditor
.
windowManager
.
getWindows
()[
0
].
close
()},
plugin
.
getButton
=
function
(){
return
null
},
plugin
.
getSelectedImage
=
function
(){
var
t
=
tinymce
.
activeEditor
.
$
(
tinymce
.
activeEditor
.
selection
.
getNode
());
return
t
.
length
?
t
.
closest
(
"
img[src]
"
):{}},
plugin
.
close
=
function
(){
tinymce
.
activeEditor
.
windowManager
.
getWindows
()[
0
].
close
()};
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment