Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
0f620fa3
Commit
0f620fa3
authored
Dec 02, 2019
by
bbaer
Browse files
changed from read-only attribute to disabled
parent
55f1aa37
Pipeline
#2836
passed with stages
in 2 minutes and 39 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
javascript/src/Helper/tinyMCE.js
View file @
0f620fa3
...
...
@@ -68,12 +68,14 @@ QfqNS.Helper = QfqNS.Helper || {};
});
/* Remove ReadOnly Again - we have to implement tinymce differently
to make it easier to change such
attributes
*/
to make it easier to change such */
var
me
=
editor
;
var
$parent
=
$
(
config
.
selector
);
$parent
.
parent
(
'
div
'
).
mouseenter
(
function
(
e
)
{
if
(
$parent
.
is
(
'
[readonly="readonly"]
'
))
{
console
.
log
(
"
Mouse Enter
"
);
console
.
log
(
$parent
.
is
(
'
[disabled]
'
));
if
(
$parent
.
is
(
'
[disabled]
'
))
{
me
.
setMode
(
"
readonly
"
);
}
else
{
me
.
setMode
(
"
design
"
);
...
...
@@ -82,7 +84,7 @@ QfqNS.Helper = QfqNS.Helper || {};
};
tinymce
.
init
(
config
);
if
(
$
(
this
).
is
(
'
[
readonly
]
'
))
{
if
(
$
(
this
).
is
(
'
[
disabled
]
'
))
{
myEditor
.
setMode
(
"
readonly
"
);
}
}
...
...
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