jchartrand/CWRCEditor — Issue #9: allow override of quotation formatting
Author: jchartrand
Created: 2011-12-02 14:34:49+00:00
State: open

Add a checkbox called 'Override standard formatting' to the quotation popup, with three radio buttons below the new checkbox (disabled unless they check the box) for the three override choices:

1) indent
2) quotation marks/run in
3) no formatting/run in

If override is selected, then use the formatting specified by the chosen radio button to display the quotation in the editor. The formatting selection should also be stored in an attribute of the tag (call it format for now, until we have the correct mapping.) Select the first radio button by default when the override checkbox is clicked.

The formatting for each is as follows:

> indent: indent entire text of quotation from left margin, usually 1.25cm. Second and subsequent lines are also indented. In other words, the margin increases for the quotation alone, and then returns to normal. No indenting of right margin.
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris:
nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

> quotation marks/run in: put double quotation marks around the quotation but don't separate it from the text that surrounds it

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua: "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

> no formatting/run in: don't apply quotation marks, don't separate it from the text that surrounds it

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.