Uploaded image for project: 'Wave'
  1. Wave
  2. WAVE-285

Editor should insert a <br style="clear: both"> at the end so it grows with floated elements (focus issue)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Extentions, Web Client
    • None

    Description

      When a doodad generates floated elements (e.g. style="float: left"), the editor surface doesn't grow with it. As a result, when clicking on the part on the side of the floated element, you might click outside the editor, and it thus fails to give it focus.

      Adding a <br style="clear: both"> or similar between the body element's </ul> and the ContentDocElement's </div> would fix it.

      Currently, the document <body><line/>Foo</body> is rendered as:
      <div>
      <ul>
      <div>Foo</div>
      </ul>
      </div>
      It should be made either:
      <div>
      <ul>
      <div>Foo</div>
      </ul>
      <br style="clear: both">
      </div>
      or (wrapping the current structure into an additional <div>, so it can be made the "autoAppendContainer")
      <div>
      <div>
      <ul>
      <div>Foo</div>
      </ul>
      </div>
      <br style="clear: both">
      </div>

      Attachments

        Activity

          People

            Unassigned Unassigned
            t.broyer Thomas Broyer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: