Opened 12 years ago
Closed 12 years ago
#9094 closed defect (fixed)
cannot specify any margin on P tags with dijit.Editor
Reported by: | Douglas Hays | Owned by: | Douglas Hays |
---|---|---|---|
Priority: | high | Milestone: | 1.4 |
Component: | Editor | Version: | 1.3.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Paragraph tags used as simple formatting within the Editor widget cannot specify margin since there is a style rule that replaces it:
p{ margin: 1em 0 !important; }
If the !important text is removed, then it works well. Here's a simple example:
<div dojoType="dijit.Editor" plugins="[]"> <p style="margin-left:10px;">item 1</p> <p style="margin-left:20px;">item 1.1</p> </div>
The 2 items line up vertically but should not since they have different left margins. The tags cannot be changed to DIV's since the content is being pasted from MS Word. This is really messing up pasted content.
Attachments (1)
Change History (4)
Changed 12 years ago by
Attachment: | 9094.patch added |
---|
comment:1 Changed 12 years ago by
I have same question almost one year ago
http://dojotoolkit.org/forum/dijit-dijit-0-9/dijit-support/richtext-editor-area-style-question
I hope to fix it soon.
comment:2 Changed 12 years ago by
Milestone: | tbd → 1.4 |
---|---|
Owner: | changed from liucougar to Douglas Hays |
Status: | new → assigned |
comment:3 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note: See
TracTickets for help on using
tickets.
Removed !important that was overriding user styling.