I am running into an issue with the "ctrl+v" functionality on a Mac running Safari version 3.1.2. Using the Telerik web site as an example (http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx) I am attempting to content copied from a Word document and pasting it into the editor body.
Here are the steps I am following:
- Mac OS X 10.5.5
- Safari 3.1.2
- Word document with lots of colors, images, font styles, sizes, etc
- Going to http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx
- Open-Apple A to select all content
- Open-Apple V to paste Word content
- I do not get a dialog box or anything - it simply pastes all of the "ugly" formatted text directly into the editor
- If I click on the format stripper tool, it will remove the formatting
- If I click on the "Paste" icon, it will remove the formatting
- If I right-click and use "Paste" from the context menu, it will NOT remove the formatting
- If I click on the "Paste as plaint text" icon, it will display the popup dialog where I again use Ctrl+V, and it will remove the formatting
While there are work arounds from a user perspective, we cannot trust our users to go through these steps, and in fact, they are finding them and exploiting them to by-pass the style rules we have in place for our web site. Is there a way on Safari to force Ctrl+V to clean/strip the formatting?
I have tried the following programmatic approaches:
- Added Javascript code per http://www.telerik.com/help/aspnet-ajax/cleaningwordformattingonpageloadandonsubmit.html - to do the following:
* ALL
* SPAN
* CSS
* WORD_ALL
* WORD_NO_FONT
- Added the <contextMenu> options to the tools file to remove the "Paste from Word" or "Paste HTML" options
- Added the StripFormattingOnPaste to AllExceptNewLines
Things work fine in IE and Firefox, just not Safari...
Thanks for any assistance anyone can offer.
Kyle Parker
Here are the steps I am following:
- Mac OS X 10.5.5
- Safari 3.1.2
- Word document with lots of colors, images, font styles, sizes, etc
- Going to http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx
- Open-Apple A to select all content
- Open-Apple V to paste Word content
- I do not get a dialog box or anything - it simply pastes all of the "ugly" formatted text directly into the editor
- If I click on the format stripper tool, it will remove the formatting
- If I click on the "Paste" icon, it will remove the formatting
- If I right-click and use "Paste" from the context menu, it will NOT remove the formatting
- If I click on the "Paste as plaint text" icon, it will display the popup dialog where I again use Ctrl+V, and it will remove the formatting
While there are work arounds from a user perspective, we cannot trust our users to go through these steps, and in fact, they are finding them and exploiting them to by-pass the style rules we have in place for our web site. Is there a way on Safari to force Ctrl+V to clean/strip the formatting?
I have tried the following programmatic approaches:
- Added Javascript code per http://www.telerik.com/help/aspnet-ajax/cleaningwordformattingonpageloadandonsubmit.html - to do the following:
* ALL
* SPAN
* CSS
* WORD_ALL
* WORD_NO_FONT
- Added the <contextMenu> options to the tools file to remove the "Paste from Word" or "Paste HTML" options
- Added the StripFormattingOnPaste to AllExceptNewLines
Things work fine in IE and Firefox, just not Safari...
Thanks for any assistance anyone can offer.
Kyle Parker
