Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3335

tbeditor p element style receive margin from browser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.3
    • Fix Version/s: 8.0.5
    • Component/s: None
    • Security Level: Jimmy
    • Labels:
      None
    • gh.sprint.customfield.default.name:
      ZK 8.0.4 S2

      Description

      Steps to Reproduce

      Run fiddle
      http://zkfiddle.org/sample/vrqjkl/1-tbeditor-p-element-style-receive-margin-from-browser
      Enter text in the editor.
      Press enter to skip a line.
      The editor adds a <p> </p> around the input.

      Actual Result

      <p> margin is retrieved from the browser's default stylesheet, which cause the line to jump down.

      Expected Result

      line should not jump down

      Debug Info

      http://alex-d.github.io/Trumbowyg/
      Trumbowyg demo uses :

      #demonstration .trumbowyg p {
          margin: 0 0 32px;
      }
      

      Root Cause

      Workaround

      	<style>
      		.z-tbeditor-editor p {
      		    margin: 0 0 1em;
      		}
      	</style>
      

        Attachments

          Activity

            People

            Assignee:
            wenninghsu wenninghsu
            Reporter:
            MDuchemin MDuchemin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours
                2h