Is it possible to restrict the amount of text entered with the "Text" function to a certain number of characters or lines?

CE.SDK

PE.SDK / VE.SDK

On Android, you can change the layout of imgly_panel_tool_text and add

android:maxLength="100"

To the EditTextAlternative you could add the same to the Imgly.PESDK.Editor.Panel.Text.InputFieldStyle

On iOS you would use a subclass of our TextToolController and override it’s UITextViewDelegate implementation to your needs. Filtering words would look like this:

class MyTextToolController: TextToolController {
  override func textViewDidChange(_ textView: UITextView) {
    textView.text = textView.text.replacingOccurrences(of: "foo", with: "bar", options: .caseInsensitive, range: nil)

    super.textViewDidChange(textView)
  }
}

and you need to instruct our SDK to use your custom class before it is used: try? PESDK.replaceClass(TextToolController.self, with: MyTextToolController.self)

VE.SDK