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

tbeditor p element style receive margin from browser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.0.5
    • 8.0.3
    • None
    • Security Level: Jimmy
    • None
    • ZK 8.0.4 S2
    • None

      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>
      

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

              Created:
              Updated:
              Resolved:

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