Configure Texts
VideoEditor SDK supports several configuration options for the text tool via the configuration.text
object, allowing flexible adaptation to different needs and use cases.
For a detailed explanation of how to configure different editor views, refer to this guide.
actions
#
actions
#By default the editor allows all available text actions. For this example, we only allow changing the text color as well as the background color.
allowEmojis
#
allowEmojis
#By default, the editor allows adding emojis as text input. It is important to note that since emojis are not cross-platform compatible using the serialization feature to share edits across different platforms will result in emojis being rendered with the system's local set of emojis and therefore will appear differently. For this example emoji input is disabled to ensure a consistent cross-platform experience.
backgroundColors
#
backgroundColors
#By default the editor provides a variety of different colors to customize the background color of the text. For this example only a small selection of colors is shown by default which could be based on favorite colors of the user.
textColors
#
textColors
#By default the editor provides a variety of different colors to customize the color of the text. For this example only a small selection of colors is shown by default which could be based on favorite colors of the user.
defaultTextColor
#
defaultTextColor
#By default the default text color is set to Color.fromRGBA(255, 255, 255, 255)
(white). For this example, the default color is set to black.