Issue/66 paste from word #314
No reviewers
Labels
No labels
Component: User interface
Component: Wymeditor
Help wanted
Level: Difficult
Level: Easy
Level: Moderate
Pagetype: Festival
Pagetype: Mailinglist
Pagetype: Peer reviewed article
Pagetype: Text
Privacy GDPR AVG
status: has conflicts
Status: Needs changes
Status: Needs discussion
Status: Needs review
Status: Ready to merge
Status: Waiting for response
Type: Bug
Type: Enhancement
Type: Question
Usecase: De Stadsbron
Usecase: Koppelting
Usecase: MeetjeStad
Value: Coders
Value: Security
Value: Users
Value: Visitors
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
harmen/hypha!314
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Issue/66-paste-from-word"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Well, that looks simple enough. I left some inline remarks, and also some caveats in #66.
@ -153,1 +159,4 @@// initiate the "image_upload" pluginwym.image_upload();There's again whitespace issues here (you're inserting spaces, while it should be tabs).
What editor are you using? We could maybe add a
.editorconfigfile to the project if your editor supports that (though I'm not sure if the indentation style is sufficiently consistent throughout the project...).I actually suspect this textarea can be removed and you can just do
wym.paste(pasteContent). It looks like thegetData('text')will already give the plaintext version of the clipboard contents, so going through thetextarea.valuedoes not do anything special (that's just a string variable essentially).I suspect it as well, but couldn't test it so tried to replicate it as faithfully as possible for now.
I'm pretty sure that if it works for any other formatted text (e.g. from libreoffice, or a browser), it will work from Word too. The existing "Paste from Word" is actually not really Word-specific, it's just named that way because that's where the biggest junk comes from, I guess.
@ -153,1 +159,4 @@// initiate the "image_upload" pluginwym.image_upload();fixed
fixed
This is superseded by #345, so I'm closing this one.
Pull request closed