Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
RichText.FormattedText
Returns the styled text of the currently loaded text file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
RichText | 3.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
MBS( "RichText.FormattedText" )
Parameters
none
Result
Returns text or error.
Description
Returns the styled text of the currently loaded text file.Examples
Read formatted text from container field:
$r = MBS( "RichText.ReadContainer"; Test::ContainerField )
$text = MBS( "RichText.FormattedText" )
Read container in one formula:
Let ( [
r = MBS( "RichText.ReadContainer"; MyContainer );
text = MBS( "RichText.FormattedText" )
]; text )
See also
- RichText.AppendFormattedText
- RichText.ReadContainer
- RichText.ReadFile
- RichText.ReadHTML
- RichText.ReadRTF
- RichText.ReadURL
- RichText.Release
- RichText.SetFormattedText
Release notes
- Version 10.1
- Added handing of Strikethrough text attribute for styled text conversion from NSAttributedString to FileMaker. Affects WebView.GetFormattedText, Clipboard.GetStyledText, RichText.FormattedText and other functions.
Example Databases
- Mac only/RichText/RichText
- Mac only/RichText/RTF to formatted text
- Text functions/HTML to formatted text
Blog Entries
This function is free to use.
Created 18th August 2014, last changed 18th December 2015
