136 selectByValue(f, 'text_style', ce.style.fontStyle, true, true); |
136 selectByValue(f, 'text_style', ce.style.fontStyle, true, true); |
137 selectByValue(f, 'text_lineheight', getNum(ce.style.lineHeight), true, true); |
137 selectByValue(f, 'text_lineheight', getNum(ce.style.lineHeight), true, true); |
138 selectByValue(f, 'text_lineheight_measurement', getMeasurement(ce.style.lineHeight)); |
138 selectByValue(f, 'text_lineheight_measurement', getMeasurement(ce.style.lineHeight)); |
139 selectByValue(f, 'text_case', ce.style.textTransform, true, true); |
139 selectByValue(f, 'text_case', ce.style.textTransform, true, true); |
140 selectByValue(f, 'text_variant', ce.style.fontVariant, true, true); |
140 selectByValue(f, 'text_variant', ce.style.fontVariant, true, true); |
141 f.text_color.value = ce.style.color; |
141 f.text_color.value = tinyMCEPopup.editor.dom.toHex(ce.style.color); |
142 updateColor('text_color_pick', 'text_color'); |
142 updateColor('text_color_pick', 'text_color'); |
143 f.text_underline.checked = inStr(ce.style.textDecoration, 'underline'); |
143 f.text_underline.checked = inStr(ce.style.textDecoration, 'underline'); |
144 f.text_overline.checked = inStr(ce.style.textDecoration, 'overline'); |
144 f.text_overline.checked = inStr(ce.style.textDecoration, 'overline'); |
145 f.text_linethrough.checked = inStr(ce.style.textDecoration, 'line-through'); |
145 f.text_linethrough.checked = inStr(ce.style.textDecoration, 'line-through'); |
146 f.text_blink.checked = inStr(ce.style.textDecoration, 'blink'); |
146 f.text_blink.checked = inStr(ce.style.textDecoration, 'blink'); |
147 |
147 |
148 // Setup background fields |
148 // Setup background fields |
149 |
149 |
150 f.background_color.value = ce.style.backgroundColor; |
150 f.background_color.value = tinyMCEPopup.editor.dom.toHex(ce.style.backgroundColor); |
151 updateColor('background_color_pick', 'background_color'); |
151 updateColor('background_color_pick', 'background_color'); |
152 f.background_image.value = ce.style.backgroundImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); |
152 f.background_image.value = ce.style.backgroundImage.replace(new RegExp("url\\('?([^']*)'?\\)", 'gi'), "$1"); |
153 selectByValue(f, 'background_repeat', ce.style.backgroundRepeat, true, true); |
153 selectByValue(f, 'background_repeat', ce.style.backgroundRepeat, true, true); |
154 selectByValue(f, 'background_attachment', ce.style.backgroundAttachment, true, true); |
154 selectByValue(f, 'background_attachment', ce.style.backgroundAttachment, true, true); |
155 selectByValue(f, 'background_hpos', getNum(getVal(ce.style.backgroundPosition, 0)), true, true); |
155 selectByValue(f, 'background_hpos', getNum(getVal(ce.style.backgroundPosition, 0)), true, true); |
196 |
196 |
197 updateColor('border_color_top_pick', 'border_color_top'); |
197 updateColor('border_color_top_pick', 'border_color_top'); |
198 updateColor('border_color_right_pick', 'border_color_right'); |
198 updateColor('border_color_right_pick', 'border_color_right'); |
199 updateColor('border_color_bottom_pick', 'border_color_bottom'); |
199 updateColor('border_color_bottom_pick', 'border_color_bottom'); |
200 updateColor('border_color_left_pick', 'border_color_left'); |
200 updateColor('border_color_left_pick', 'border_color_left'); |
|
201 |
|
202 f.elements.border_color_top.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_top.value); |
|
203 f.elements.border_color_right.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_right.value); |
|
204 f.elements.border_color_bottom.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_bottom.value); |
|
205 f.elements.border_color_left.value = tinyMCEPopup.editor.dom.toHex(f.elements.border_color_left.value); |
201 |
206 |
202 // Setup list fields |
207 // Setup list fields |
203 |
208 |
204 selectByValue(f, 'list_type', ce.style.listStyleType, true, true); |
209 selectByValue(f, 'list_type', ce.style.listStyleType, true, true); |
205 selectByValue(f, 'list_position', ce.style.listStylePosition, true, true); |
210 selectByValue(f, 'list_position', ce.style.listStylePosition, true, true); |