When longer texts are pasted that exceed the tool's design capacity, it should edit as much of the text as it is intended to. Then, allow the user to choose an option to copy the edited text and prompt the tool to proceed with editing another section, repeating this process as many times as necessary.