Flash-text-use-rich-text-clipboard
From Frontal Wiki
Contents |
Purpose
This style is exclusive to the 'text' tag and enables rich text formatting to be preserved when the contents of text fields are copied and pasted.
Value
The flash-text-use-rich-text-clipboard style accepts boolean values "true" or "false". The default value is "false".
flash-text-use-rich-text-clipboard: false;
This style is cascading.
Remarks
This style takes advantage of a Flash feature. See the Flash reference for TextField.useRichTextClipboard for more details.
Example
Check the box to preserve rich text formatting when copying from the top text box into the one below.
<style><![CDATA[ text, input { margin: 30px auto 0px auto; width: 200px; } input[type=checkbox] { custom-label-placement: left; @onClickRaw { gE("source").sS("flash-text-use-rich-text-clipboard", value); gE("destination").sS("flash-text-use-rich-text-clipboard", value); } } input[type=button] { @onClickRaw { gE("destination").text = ""; } } .textBox { flash-text-use-rich-text-clipboard: false; border-width: 1px; condense-white: true; font-family: Swift LT Std; font-size: 14px; } ]]></style> <include rel="assets" blocking="true" src="assets.swf" fontClasses="SwiftLTStd, SwiftLTStdBold, SwiftLTStdItalic" /> <text id="source" class="textBox"><![CDATA[ <b>Sed ut perspiciatis</b> unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, <i>totam rem aperiam</i>, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae <font size="20">vitae dicta sunt explicabo.</font> ]]></text> <text id="destination" class="textBox" style="height: 200px; flash-text-type: input;"></text> <input type="checkbox"><![CDATA[flash-text-use-rich-text-clipboard:]]></input> <input type="button"><![CDATA[Clear]]></input>
Can Be Applied To
This style can be applied to: