Skip to content

Conversation

@Sohila-Hashem
Copy link

Issue

#135

Cause

The onpaste function was updating only the this.data property with the output from the internal onpaste handler. However, the reference to the list was still pointing to the old instance that contained outdated data. As a result, attempting to change the list style on pasted content had no visible effect, since the operation was being performed on the outdated list instance behind the scenes.

Fix Workflow

I updated the implementation to re-instantiate the list instance in the main List tool class and then attach the data output from the onpaste handler to it.

…r on paste to make sure new styles applies to the instance with the new data
@Sohila-Hashem Sohila-Hashem mentioned this pull request Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant