Ticket #13113 (confirmed Bug)

Opened 4 years ago

Last modified 2 years ago

TinyMCE: editor height settings have no effect

Reported by: ramonski Owned by:
Priority: minor Milestone: 4.x
Component: Visual Editor Version: 4.1
Keywords: Cc:

Description

I'm running a Plone 3.3.6 Site with Products.TinyMCE 1.2.12. When I add a value for the editor height in the TinyMCE Control Panel, it has no effect to the wysiwyg editor displayed on the site.

I localized the settings in tiny_mce_init.js

var init_dict = {
    [...]
    theme_advanced_source_editor_height : this.getEditorHeight(),
    [...]
}

the settings do appear, but have no effect to the editor height.

If I add a height to the config:

var init_dict = {
    [...]
    theme_advanced_source_editor_height : this.getEditorHeight(),
    height : this.getEditorHeight(),
    [...]
}

it works as I would expect it to work.

This behavior also appears in Plone 4

So my question is: shouldn't this config option be set in here by default?

Links:

 http://www.tinymce.com/wiki.php/Configuration:height  http://www.tinymce.com/wiki.php/Configuration:theme_advanced_source_editor_height

Change History

comment:1 Changed 4 years ago by kleist

  • Status changed from new to confirmed
  • Version changed from 3.3 to 4.0
  • Component changed from Unknown to Visual Editor

You wrote "This behavior also appears in Plone 4"

Could you please be more specific?

(Plone 3 is no longer supported.)

comment:2 Changed 4 years ago by ramonski

In a Plone 4.1.4 Site, I can set the editor height in the TinyMCE Control Panel to 100 without effect to the WYSIWYG Editor. Also other Values have absolutely no effect to the editor height.

comment:3 Changed 4 years ago by kleist

  • Version changed from 4.0 to 4.1

comment:4 Changed 4 years ago by dkozar

This should be fixed with 1.3b2 release, can you verify?

comment:5 Changed 3 years ago by maartenkling

tested in plone4.3, changing the height in control panel has no effect.

comment:6 Changed 2 years ago by gyst

Confirmed, this is still an issue in Plone 4.3.2.

Debugging this is difficult because the resizing option sets a cookie that remembers the last size.

As a workaround one can fix the size in CSS; the price is that the user cannot resize anymore.

  table.mceLayout[style] {
    height: 250px !important;
  }

  .mceIframeContainer iframe[style] {
    height: 250px !important;
  }

Note that these values still get overwritten but somehow It Works For Me (TM).

NB:

  • Products.TinyMCE.utility takes the right value from the registry (checked with pdb)
  • Changing the editor_height in editor_template.js has no effect (checked with skin override)
Note: See TracTickets for help on using tickets.