return {
init: function() {
+ // tooltips are handled on our own
+ this.button.buildButtonTooltip = function () {};
+
// add custom buttons
var button, buttonName, i, length;
//noinspection JSUnresolvedVariable
*/
_click: function() {
var editor = document.activeElement;
- if (editor.classList.contains('redactor-editor')) {
+ if (editor.classList.contains('redactor-layer')) {
$('#' + elData(editor, 'element-id')).redactor('selection.save');
}
_ajaxFailure: function(data) {
var elementData = this._elements.get(this._activeElement);
- var editor = elBySel('.redactor-editor', elementData.messageBodyEditor);
+ var editor = elBySel('.redactor-layer', elementData.messageBodyEditor);
// handle errors occurring on editor load
if (editor === null) {
-.redactor-editor pre {
+.redactor-layer pre {
background-color: rgb(255, 255, 255) !important;
box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
border-radius: 2px;
-.redactor-editor woltlab-spoiler {
+.redactor-layer woltlab-spoiler {
background-color: $wcfContentBackground;
box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .24);
border-radius: 2px;
}
}
-.redactor-editor {
+.redactor-layer {
border: 1px solid $wcfContentBorderInner;
border-top-width: 0;
max-height: 500px;
/* disable auto zoom in mobile safari */
@include screen-md-down {
- .redactor-editor {
+ .redactor-layer {
font-size: 16px;
max-height: 500px;
}
top: 0;
z-index: 310;
- .redactor-editor {
+ .redactor-layer {
max-height: none !important;
min-height: 0 !important;
}