Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
5451626c
Commit
5451626c
authored
Sep 29, 2016
by
Carsten Rose
Browse files
Merge remote-tracking branch 'origin/tinymce' into crose_work
parents
f95594a8
20a24f19
Changes
3
Hide whitespace changes
Inline
Side-by-side
javascript/src/Helper/tinyMCE.js
View file @
5451626c
...
...
@@ -51,7 +51,7 @@ QfqNS.Helper = QfqNS.Helper || {};
}
}
config
.
selector
=
"
#
"
+
tinyMCEId
;
config
.
selector
=
"
#
"
+
QfqNS
.
escapeJqueryIdSelector
(
tinyMCEId
)
;
config
.
setup
=
function
(
editor
)
{
editor
.
on
(
'
Change
'
,
function
(
e
)
{
QfqNS
.
Log
.
debug
(
'
Editor was changed
'
);
...
...
javascript/src/Utils.js
0 → 100644
View file @
5451626c
/**
* @author Rafael Ostertag <rafael.ostertag@math.uzh.ch>
*/
/* global $ */
/**
* Qfq Namespace
*
* @namespace QfqNS
*/
var
QfqNS
=
QfqNS
||
{};
(
function
(
n
)
{
'
use strict
'
;
n
.
escapeJqueryIdSelector
=
function
(
idSelector
)
{
return
idSelector
.
replace
(
/
(
:
)
/
,
"
\\
$1
"
);
};
})(
QfqNS
);
\ No newline at end of file
mockup/richtexteditor.html
View file @
5451626c
...
...
@@ -69,11 +69,11 @@
<div
class=
"form-group"
>
<div
class=
"col-md-2"
>
<label
for=
"text2"
class=
"control-label"
>
Rich Text Editor
</label>
<label
for=
"text
:
2"
class=
"control-label"
>
Rich Text Editor
</label>
</div>
<div
class=
"col-md-6"
>
<textarea
id=
"text2"
class=
"qfq-tinymce"
name=
"rte"
<textarea
id=
"text
:
2"
class=
"qfq-tinymce"
name=
"rte"
data-config=
"{ "plugins": "advlist autolink link image lists charmap print preview"}"
>
Input
</textarea>
</div>
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment