Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RSDEV-533 Refactor PyRAT tinymce plugin to avoid need for iframe #267

Merged

Conversation

rlamacraft
Copy link
Contributor

It seems excessive to render a react component inside of an iframe inside of a tinymce dialog, when we could just render the react component. Rendering the dialog directly also gives us full control over the styling, allowing us to using the accented theme based on each organisation's branding.

@rlamacraft rlamacraft force-pushed the rsdev-533-pyrat-without-iframe branch from bfcd63a to e91e6e2 Compare February 19, 2025 12:20
@rlamacraft
Copy link
Contributor Author

@mKowalski256 any thoughts? I feel like this simplifies things, especially with the ultimate goal of reactifying the document editor. It means that any new plugins going forward will be easier to migrate when the time comes. The content of each dialog could be implemented in a separate node module by external collaborators if they would prefer, with the plugin set up code trivial even if we had to do it every time.

@rlamacraft
Copy link
Contributor Author

Visually, it makes the PyRAT dialog look like this
image

@rlamacraft rlamacraft force-pushed the rsdev-533-pyrat-without-iframe branch 3 times, most recently from 329f04a to e37db14 Compare February 20, 2025 11:30
@rlamacraft rlamacraft marked this pull request as ready for review February 20, 2025 15:14
@rlamacraft rlamacraft force-pushed the rsdev-533-pyrat-without-iframe branch from e37db14 to a8dfa76 Compare February 20, 2025 17:30
@rlamacraft rlamacraft merged commit e29a6d8 into rspace-os:main Feb 21, 2025
2 checks passed
@rlamacraft rlamacraft deleted the rsdev-533-pyrat-without-iframe branch February 21, 2025 16:18
@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant