TinyMCE:API/tinymce.dom.DOMUtils/parseStyle

From Moxiecode Documentation Wiki

Jump to: navigation, search

Contents

Method: parseStyle

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.

Syntax

<Object> parseStyle(<String> st)

Parameters

st
Style value to parse for example: border:1px solid red;.

Returns

Object representation of that style like {border : '1px solid red'}

Personal tools