Skip to content

Commit

Permalink
FIX HTMLEditorField::setRows with Elemental
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabina Talipova committed Jan 24, 2024
1 parent 493909d commit b1f948f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/src/legacy/HtmlEditorField.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ ss.editorWrappers.tinyMCE = (function() {
getConfig: function() {
var selector = "#" + editorID,
config = jQuery(selector).data('config'),
height = config.row_height ? config.row_height : '400px',
self = this;

// Add instance specific data to config
Expand All @@ -94,7 +95,6 @@ ss.editorWrappers.tinyMCE = (function() {
self.save();
});
ed.on('init', (event) => {
let height = document.querySelector(config.selector).style.height;
self.setHeight(event, height);
});
ed.on('ResizeEditor', (event) => {
Expand Down

0 comments on commit b1f948f

Please sign in to comment.