Skip to content

Plugin breaks non-editable Rich Text formatting #183

@AndreiDaydream

Description

@AndreiDaydream

The plugin doesn't play nice with TMP rich text formatting, such as "Hello <color=red>World"

Say I have that text in an input field (rich text enabled, rich text editing not enabled). Trying to edit anything in that field with this plugin active messes things completely, from jumping the cursor around to editing the < > formatting and breaking it - likely due to passing that format back and forth between web and unity and breaking it along the way.

It would be fine if copy-paste ignored the formatting and just worked with the visible text, I just want it to not break editing the input field manually.

Steps to Reproduce:

  • Createa TMP_InputField with Rich Text enabled, and Rich Text editing disabled
  • Via code, populate it with some < > tags to write Hello <color=red>World</color>
  • Test it in editor: type text in that field, at the start, middle, end; notice the desired behavior
  • Build it on web
  • Test the input field again: notice that typing in text in that field will jump your cursor around and break the rich text formatting

Desired Behaviour:

  • Keep same behaviour in editor as web build (do not break formatting when typing, do not change cursor position)
  • It is acceptable to ignore formatting when copy-pasting, work with the visible text only. Just don't break it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions