-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Prevent TinyMCE to remove styles when content is pasted from a template #15840
Merged
trasher
merged 1 commit into
glpi-project:10.0/bugfixes
from
cedric-anne:10.0/tinymce-paste
Oct 25, 2023
Merged
Prevent TinyMCE to remove styles when content is pasted from a template #15840
trasher
merged 1 commit into
glpi-project:10.0/bugfixes
from
cedric-anne:10.0/tinymce-paste
Oct 25, 2023
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 tasks
cedric-anne
added a commit
to cedric-anne/glpi
that referenced
this pull request
Oct 20, 2023
@cedric-anne it does not seem totally effective, see !30132. |
It was not working due to usage of the minified JS file that was not patched. After removal of this minified file, it is OK. |
AdrienClairembault
approved these changes
Oct 25, 2023
No feedback from original reporter, I guess this is OK |
trasher
approved these changes
Oct 25, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
After some reverse engeneering, I figured out that there was an undocumented
internal
option that could be passed tomceInsertClipboardContent
command. Passing this option with thetrue
values disable some filtering operations that seems to be the cause of the issue here.I was not able to identify exactly what is the issue here, and if it is a bug from TinyMCE or an expected behaviour. I will probably open an issue on their repository later.
To reproduce :