Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
f95594a8
Commit
f95594a8
authored
8 years ago
by
Carsten Rose
Browse files
Options
Downloads
Plain Diff
Merge remote-tracking branch 'origin/tinymce' into crose_work
parents
44e04fa1
43773d46
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Gruntfile.js
+4
-22
4 additions, 22 deletions
Gruntfile.js
javascript/src/Helper/tinyMCE.js
+6
-7
6 additions, 7 deletions
javascript/src/Helper/tinyMCE.js
mockup/richtexteditor.html
+2
-1
2 additions, 1 deletion
mockup/richtexteditor.html
with
12 additions
and
30 deletions
Gruntfile.js
+
4
−
22
View file @
f95594a8
...
...
@@ -249,21 +249,12 @@ module.exports = function (grunt) {
{
cwd
:
'
bower_components/tinymce/
'
,
src
:
[
'
themes/*/theme.min.js
'
],
dest
:
typo3_js
,
expand
:
true
,
// Tiny MCE expects the theme js files in ./themes.
flatten
:
false
},
{
cwd
:
'
bower_components/tinymce/
'
,
src
:
[
'
themes/*/theme.min.js
'
,
'
plugins/*/plugin.min.js
'
,
'
skins/**
'
],
dest
:
typo3_js
,
expand
:
true
,
// Tiny MCE expects the theme js files in ./themes.
flatten
:
false
}
]
...
...
@@ -282,21 +273,12 @@ module.exports = function (grunt) {
{
cwd
:
'
bower_components/tinymce/
'
,
src
:
[
'
themes/*/theme.min.js
'
],
dest
:
'
js/
'
,
expand
:
true
,
// Tiny MCE expects the theme js files in ./themes.
flatten
:
false
},
{
cwd
:
'
bower_components/tinymce/
'
,
src
:
[
'
themes/*/theme.min.js
'
,
'
plugins/*/plugin.min.js
'
,
'
skins/**
'
],
dest
:
'
js/
'
,
expand
:
true
,
// Tiny MCE expects the theme js files in ./themes.
flatten
:
false
}
]
...
...
This diff is collapsed.
Click to expand it.
javascript/src/Helper/tinyMCE.js
+
6
−
7
View file @
f95594a8
...
...
@@ -43,19 +43,18 @@ QfqNS.Helper = QfqNS.Helper || {};
var
configData
=
$this
.
data
(
'
config
'
);
if
(
configData
)
{
try
{
config
=
JSON
.
parse
(
configData
);
}
catch
(
e
)
{
QfqNS
.
Log
(
"
Exception while parsing JSON:
"
+
configData
);
QfqNS
.
Log
(
e
);
return
;
if
(
configData
instanceof
Object
)
{
// jQuery takes care of decoding data-config to JavaScript object.
config
=
configData
;
}
else
{
QfqNS
.
Log
.
warning
(
"
'data-config' is invalid:
"
+
configData
);
}
}
config
.
selector
=
"
#
"
+
tinyMCEId
;
config
.
setup
=
function
(
editor
)
{
editor
.
on
(
'
Change
'
,
function
(
e
)
{
console
.
lo
g
(
'
Editor was changed
'
);
QfqNS
.
Log
.
debu
g
(
'
Editor was changed
'
);
var
eventTarget
=
e
.
target
;
var
$parentForm
=
$
(
eventTarget
.
formElement
);
$parentForm
.
trigger
(
"
change
"
);
...
...
This diff is collapsed.
Click to expand it.
mockup/richtexteditor.html
+
2
−
1
View file @
f95594a8
...
...
@@ -73,7 +73,8 @@
</div>
<div
class=
"col-md-6"
>
<textarea
id=
"text2"
class=
"qfq-tinymce"
name=
"rte"
>
Input
<textarea
id=
"text2"
class=
"qfq-tinymce"
name=
"rte"
data-config=
"{ "plugins": "advlist autolink link image lists charmap print preview"}"
>
Input
</textarea>
</div>
...
...
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