refinerycms: Display bug with WYMeditor, the iframe takes more space than it should

don’t know how to tackle this as it generated by the wymeditor javascript (I assume)

http://madwagon.co/system/images/BAhbBlsHOgZmSSIwMjAxMi8wMy8wOS8wMV80NF8xM185MTVfV3ltZWRpdG9yX2Vycm9yLmpwZwY6BkVU/Wymeditor-error.jpg

Code (generated by Refinery), enclosed in an additional div and form

<div id="homepage">
      <%= f.fields_for :home_page do |f_home| -%>

      <%= render '/refinery/admin/error_messages',
                  :object => @site.home_page,
                  :include_object_name => true %>

      <div class='field'>
        <div id='page-tabs' class='clearfix ui-tabs ui-widget ui-widget-content ui-corner-all'>
          <ul id='page_parts'>
            <% [:description].each_with_index do |part, part_index| %>
              <li class='ui-state-default<%= ' ui-state-active' if part_index == 0 %>'>
                <%= link_to t("#{part}", :scope => "activerecord.attributes.refinery/sites/home_page", :default => part.to_s.titleize), "##{part}" %>
              </li>
            <% end %>
          </ul>
          <div id='page_part_editors'>
            <% [:description].each do |part| %>
              <div class='page_part' id='<%= part %>'>
                <%= f_home.text_area part, :rows => 20, :class => 'wymeditor widest' -%>
              </div>
            <% end %>
          </div>
        </div>

      </div>

About this issue

  • Original URL
  • State: closed
  • Created 12 years ago
  • Comments: 22 (12 by maintainers)

Most upvoted comments

My general advice would be look for whether you can fix the issue with css or js in dev tools. If you can, you can add javascript at the end of the postInit part. That’s barely even advice, but it’s what I had to do.

I think that’s very solid advice 😄

thanks for the help on this issue @evenreven ❤️ 💜 💛 💚