Skip to content
This repository has been archived by the owner on Aug 13, 2022. It is now read-only.

Commit

Permalink
fixed Quill display issues, refs #199
Browse files Browse the repository at this point in the history
  • Loading branch information
Guite committed Jul 26, 2020
1 parent 26301d6 commit bf1b0b2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
20 changes: 10 additions & 10 deletions Editor/CKEditor/Resources/public/js/CKEditor.configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
$(document).ready(function() {
switch (resizeEle.val()) {
case 'resize':
agDetails.addClass('hidden');
agDetails.addClass('d-none');
break;
case 'autogrow':
rsDetails.addClass('hidden');
rsDetails.addClass('d-none');
break;
case 'noresize':
rsDetails.addClass('hidden');
agDetails.addClass('hidden');
rsDetails.addClass('d-none');
agDetails.addClass('d-none');
break;
}

Expand All @@ -23,16 +23,16 @@
{
switch (resizeEle.val()) {
case 'resize':
rsDetails.removeClass('hidden');
agDetails.addClass('hidden');
rsDetails.removeClass('d-none');
agDetails.addClass('d-none');
break;
case 'autogrow':
rsDetails.addClass('hidden');
agDetails.removeClass('hidden');
rsDetails.addClass('d-none');
agDetails.removeClass('d-none');
break;
case 'noresize':
rsDetails.addClass('hidden');
agDetails.addClass('hidden');
rsDetails.addClass('d-none');
agDetails.addClass('d-none');
break;
}
}
Expand Down
7 changes: 5 additions & 2 deletions Editor/Quill/Resources/public/js/Quill.ajaxApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ var ScribiteUtil = function(editorOptions)
var textArea, editorElem, quill;

textArea = jQuery('#' + domId);
editorElem = jQuery('<div />', { id: domId + 'Editor' }).html(textArea.val());
editorElem = jQuery('<div />', { id: domId + 'Editor' })
.html(textArea.val())
.css('height', 'auto')
;
textArea.parent().append(editorElem);
textArea.addClass('hidden');
textArea.addClass('d-none');
quill = new Quill('#' + domId + 'Editor', editorOptions);
quill.on('text-change', function () {
textArea.val(quill.container.firstChild.innerHTML);
Expand Down

0 comments on commit bf1b0b2

Please sign in to comment.