Issues with PasteWord

Last post 03-28-2005, 3:04 PM by mw371r. 2 replies.
Sort Posts: Previous Next
  •  03-28-2005, 11:17 AM 5024

    Issues with PasteWord

    I have three issues I need help with.
     
    1) I need to know how call the word cleanup function (from the code cleaner dialog) without opening the dialog first.  Same with the font cleaner.  What I want to be able to do is allow a user to click a "Word cleanup" button, and have just that function run.
     
    2) I need to know if there is a way to remove Word-specific characters, such as the apostrophe ().  I need to be able to remove these word-specific characters, and replace them with the generic versions (such as an ascii apostrophe(')), so that the document will display correctly on any browser.  The Word cleanup button does not seem to accomplish this, as I had hoped it would.
     
    3) When using the right-click -> Paste function, it does not prompt the user to Paste from Word, like it does when using CTRL+V.  I need to know how to accomplish this as well.
     
    Thanks a lot, and any help would be greatly appreciated.
     
  •  03-28-2005, 11:47 AM 5028 in reply to 5024

    Re: Issues with PasteWord

    1) I need to know how call the word cleanup function (from the code cleaner dialog) without opening the dialog first.  Same with the font cleaner.  What I want to be able to do is allow a user to click a "Word cleanup" button, and have just that function run.
     
    A: There is a client function named ExecCommand_CleanCode.
     
    Example:
    function cleancode()
    {
        <%=Editor1.ClientID%>.ExecCommand_CleanCode();
    }
     
    Hope it helps.
     
    2) I need to know if there is a way to remove Word-specific characters, such as the apostrophe ().  I need to be able to remove these word-specific characters, and replace them with the generic versions (such as an ascii apostrophe(')), so that the document will display correctly on any browser.  The Word cleanup button does not seem to accomplish this, as I had hoped it would. 
     
    A: Apostrophe is not only a common character, but also constant delimiter when used in the JavaScript. By default Cute Editor maps most special characters to the equivalent HTML entity automatically. But Apostrophe is not included.

    3) When using the right-click -> Paste function, it does not prompt the user to Paste from Word, like it does when using CTRL+V.  I need to know how to accomplish this as well.

    A: Try right-click -> Edit -> Paste from word

    Hope it helps.

    Let me know if you have any further questions.




     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  03-28-2005, 3:04 PM 5037 in reply to 5028

    Re: Issues with PasteWord

    Adam,
    Thanks for the replies, but....
     
    1) ExecCommand_CleanCode() only gives me an "Object doesn't support this property or method" javascript error.
     
    2) I understand about the apostrophe, but what we are are trying to eliminate is all Microsoft specific characters, such as those used in word.
     
    3) Right-click -> Edit -> Paste from word only does a regular paste (it seems), no prompt or anything.
     
    Oh, if it helps, we did just upgrade from 4.0.0.2 to 4.0.0.5
    Thanks.
View as RSS news feed in XML