Skip to main content
Language

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#

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.

canvasActions#

By default the editor allows a bunch of canvas actions in the text tool. For this example, we only allow to delete a text as well as bring the text to the front in the view hierarchy.

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#

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#

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#

By default the default text color is set to [1, 1, 1, 1]. For this example, the default color is set to black.