When copying text from Outlook into an ASPX file, instead of getting plain text from the following:
December 26 to 27, 2016: The Cervélo office will be closed for the Christmas holiday. Any orders entered via the dealer portal will be received but will not be processed during this time. We ask that you keep these dates in mind for the final week of order submissions.
I am getting :
<svg width="779px" height="262px" viewBox="0 0 779 262"><text x="0" y="0.41" fill="#000000" font-family="Arial" font-size="18" alignment-baseline="text-before-edge">
December 26 to 27, 2016</text>
<text x="209" y="0.41" fill="#000000" font-family="Arial" font-size="18" alignment-baseline="text-before-edge">
: The Cervélo office will be closed for the Christmas holiday. Any orders </text>
<text x="0" y="21.41" fill="#000000" font-family="Arial" font-size="18" alignment-baseline="text-before-edge">
entered via the dealer portal will be received bu</text>
<text x="390" y="21.41" fill="#000000" font-family="Arial" font-size="18" alignment-baseline="text-before-edge">
t will not be processed during this time. We ask </text>
<text x="0" y="42.41" fill="#000000" font-family="Arial" font-size="18" alignment-baseline="text-before-edge">
that you keep these dates in mind for the final week of order submissions.</text>
<text x="594" y="42.41" fill="#000000" font-family="Arial" font-size="18" alignment-baseline="text-before-edge">
</text>
Also the selected text I trying to replace with the pasted text is not deleted and the tagged text is appended to the end of the selected text.
Hello Matt,
This result is produced by the "Paste as Svg" CodeRush feature that allows you to paste vector data or text with certain style.
To learn more about this feature, refer to this blog post: Paste as Xaml/Svg.
Right now we do not have an option to disable this, but we will consider adding this option in future releases.
As a temporary workaround you can open notepad, copy text from Outlook there and after that copy text from notepad to an .aspx file.
We will update this thread as soon as we add a possibility to disable the Paste as Xaml\Svg code providers.
Please add a feature to turn that off. It is extremely painful when copying lots of text from Word or other apps into ASPX pages. Along with the brain dead VS auto ID paste, pasting within ASPX pages is becoming excruciatingly slow and difficult. You have changed the behaviour to something not expected. Worse yet, you do not make this an option.
You should not assume that all will be happy with it. To me this is a major bug and NOT a feature. Also given that my settings have been totally wiped out, a feature that I did have to get around the auto ID pasting from VS is now gone and I will have to use your method to copy and paste.
Sorry, not a happy camper here at all.
Matt, I am concerned to hear that working with our product produces any inconvenience.
We totally agree that we should provide a way to disable the "Paste as Xaml/Svg" code providers.
In the special build mentioned in your another ticket (Installing CodeRush for Roslyn v16.2.3 clears all my templates), we will give you an option to disable "Paste as Xaml/Svg".
This option will be provided in future CRR releases as well.
Also, let me say that you will be able to restore all your settings (include custom templates) by replacing your current settings with those attached in the mentioned ticket.
Hello Matt,
We have provided the hotfix in your other ticket (Installing CodeRush for Roslyn v16.2.3 clears all my templates).
After installing it, follow these steps to get to the Quick Setup options page:
Disable the "Paste as XAML/SVG" checkbox on the "Quick Setup" options page.
Try to copy text from Outlook to an .aspx file and let us know your results.
Pavel,
Works as expected now. When I turn off the feature, it pastes properly.
When the feature is turned on, the pasting (assuming I want SVG) is not working properly though. If you have selected the text you want to replace with the pasted SVG content, it does not delete the selected text. Rather it pastes the SVG text at the end of the selection. What this means is you have not replaced your originally selected text and next to go back reselect it and then delete it. You may want to correct that.
Thank you for letting us know about your results, Matt.
Regarding the issue with replacing the selected text, I've created a separate ticket on your behalf (The "Paste as XAML\SVG" feature inserts SVG content at the end of the selected text instead of replacing it). It has been placed in our processing queue and will be answered shortly.