Opened 14 years ago
Last modified 10 years ago
#7530 review_failed New Feature
Support for setting a default font and applying it through inline styles
Reported by: | Teresa Monahan | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | |
Keywords: | IBM | Cc: | Damian, Satya Minnekanti, James Cunningham, lynne_kues@…, irinauru@… |
Description
We would like to be able to set a default font for text in the editor. We realise this is currently possible using config.contentsCSS to specify a CSS file which defines the default stylings. However we require the default font styling to be stored within the document instead of in an external CSS file.
For example, if the default font is set to Arial, then the text entered in the editor should be wrapped in a span tag and the font family inline style should be set to arial by default e.g.
<span style="font-family: arial;">sample text...</span>
Would it be possible to implement a config option to specify a default font that will be applied like this to all text in the editor unless the user specifies a different font through the font drop down field? Alternatively could you provide an extension point that we could hook into to apply styling like this to text before it is inserted into the editor?
Note: This request came from a customer and it is a feature that would be benificial in many of our products.
Attachments (1)
Change History (8)
comment:1 Changed 14 years ago by
Keywords: | IBM added |
---|
Changed 14 years ago by
Attachment: | 7530.patch added |
---|
comment:2 Changed 14 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | new → review |
comment:3 Changed 14 years ago by
Status: | review → review_failed |
---|
comment:4 Changed 14 years ago by
Much probably, a data processor feature would be enough here.
Could you leak more brilliance of this idea?
comment:5 Changed 12 years ago by
Cc: | lynne_kues@… added |
---|
comment:6 Changed 12 years ago by
This issue has been raised by our customers and we need a way to have a default font and size applied to new text in the editor by default. We are using the configuration parameters font_defaultLabel and fontSize_defaultLabel. It seems that if these parameters match values that are specified for the font combos, the editor should activate those values (i.e., as if the user selected the values). Or there should be some way other way to set the default values for these combos.
comment:7 Changed 10 years ago by
Cc: | irinauru@… added |
---|
This is really that kind of feature that we don't need to have, but that we have people asking for, from time to time.