Opened 11 years ago

Closed 10 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)

9094.patch (569 bytes) - added by Douglas Hays 11 years ago.
Removed !important that was overriding user styling.

Download all attachments as: .zip

Change History (4)

Changed 11 years ago by Douglas Hays

Attachment: 9094.patch added

Removed !important that was overriding user styling.

comment:1 Changed 10 years ago by youngho

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 10 years ago by Douglas Hays

Milestone: tbd1.4
Owner: changed from liucougar to Douglas Hays
Status: newassigned

comment:3 Changed 10 years ago by Douglas Hays

Resolution: fixed
Status: assignedclosed

(In [17617]) Fixes #9094 !strict. Removed !important from internal Editor P CSS rule.

Note: See TracTickets for help on using tickets.