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
81aa70a2
Commit
81aa70a2
authored
Dec 03, 2019
by
bbaer
Browse files
grey out tinymce controls when readonly
parent
67c7c5f8
Changes
2
Hide whitespace changes
Inline
Side-by-side
javascript/src/Helper/tinyMCE.js
View file @
81aa70a2
...
...
@@ -75,8 +75,10 @@ QfqNS.Helper = QfqNS.Helper || {};
$parent
.
on
(
"
change
"
,
function
(
e
,
configuration
)
{
if
(
configuration
.
disabled
||
configuration
.
readonly
)
{
me
.
setMode
(
"
readonly
"
);
$
(
this
).
siblings
(
"
.mce-tinymce
"
).
addClass
(
"
qfq-tinymce-readonly
"
);
}
else
{
me
.
setMode
(
"
design
"
);
$
(
this
).
siblings
(
"
.mce-tinymce
"
).
removeClass
(
"
qfq-tinymce-readonly
"
);
}
});
};
...
...
@@ -84,6 +86,7 @@ QfqNS.Helper = QfqNS.Helper || {};
tinymce
.
init
(
config
);
if
(
$
(
this
).
is
(
'
[disabled]
'
))
{
myEditor
.
setMode
(
"
readonly
"
);
$
(
this
).
siblings
(
"
.mce-tinymce
"
).
addClass
(
"
qfq-tinymce-readonly
"
);
}
}
);
...
...
less/qfq-bs.css.less
View file @
81aa70a2
...
...
@@ -353,6 +353,10 @@ i.@{spinner_class} {
/* ERROR END */
.qfq-tinymce-readonly .mce-panel {
background-color: #eee;
}
/* inline elements in horizontal mode are too much left */
.form-horizontal {
...
...
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