TinyMCE:API/tinymce.dom.DOMUtils/parseStyle
From Moxiecode Documentation Wiki
Contents |
[edit]
Method: parseStyle
[edit]
Summary
Parses the specified style value into an object collection. This parser will also merge and remove any redundant items that browsers might have added. It will also convert non hex colors to hex values. Urls inside the styles will also be converted to absolute/relative based on settings.
[edit]
Syntax
<Object> parseStyle(<String> st)
[edit]
Parameters
- st
- Style value to parse for example: border:1px solid red;.
[edit]
Returns
Object representation of that style like {border : '1px solid red'}
