Automation and options relating to pasting HTML from MS Word -- Need documentation

Last post 04-12-2005, 10:15 PM by randal. 3 replies.
Sort Posts: Previous Next
  •  04-12-2005, 9:19 PM 5653

    Automation and options relating to pasting HTML from MS Word -- Need documentation

    I set out to eliminate the confirmation dialog when pasting text from MS Word.  After searching long and hard all over the site, I found an answer in the forums but still took me a while to figure out how to apply the suggestion.  In my search I found the PasteBehavior enumeration, but not how or where to use the constants (e.g. the documentation for PasteBehavior does not have an example or a link to EditorOnPaste).

    Here is the solution to my immediate problem.

    1)    Server-Side code (VB): Editor.EditorOnPaste = CuteEditor.PasteBehavior.PasteWord
    2)    In the HTML tag:  <CE:Editor ... EditorOnPaste="PasteWord" ... />

    I've placed my server-side code in the Page_Load subroutine.  Is that what you'd recommend? 

    Please tell me how to specify this same behavior in other contexts.  (I know that not all settings can be changed in every context.)

    3) At runtime in the client-side code. ???
    4) In a configuration file (Which one and under which node?).

    If it is specified differently in two or more of these four contexts, which one takes precedence?  I would guess that the priority is: System defaults (lowest priority), Configuration file overrides system defaults, <CE:Editor... /> tag is next, Server-side ASPX code trumps the HTML spec, and finally, Client-Side runtime is last to take effect and is therefore the most current setting. 

    Is there a document I'm unaware of that specifies these details for all the editor's settings?
     
    Great documentation would save us all a huge amount of time, effort and frustration.  It would have helped if the existing documentation could be searched.
     
    Thanks,
     
    Randal
  •  04-12-2005, 9:52 PM 5657

    Re: Automation and options relating to pasting HTML from MS Word -- Need documentation

     randal wrote:
    I set out to eliminate the confirmation dialog when pasting text from MS Word.  After searching long and hard all over the site, I found an answer in the forums but still took me a while to figure out how to apply the suggestion.  In my search I found the PasteBehavior enumeration, but not how or where to use the constants (e.g. the documentation for PasteBehavior does not have an example or a link to EditorOnPaste).

    Here is the solution to my immediate problem.

    1)    Server-Side code (VB): Editor.EditorOnPaste = CuteEditor.PasteBehavior.PasteWord
    2)    In the HTML tag:  <CE:Editor ... EditorOnPaste="PasteWord" ... />

    I've placed my server-side code in the Page_Load subroutine.  Is that what you'd recommend? 

    Please tell me how to specify this same behavior in other contexts.  (I know that not all settings can be changed in every context.)

    3) At runtime in the client-side code. ???
    4) In a configuration file (Which one and under which node?).

    If it is specified differently in two or more of these four contexts, which one takes precedence?  I would guess that the priority is: System defaults (lowest priority), Configuration file overrides system defaults, <CE:Editor... /> tag is next, Server-side ASPX code trumps the HTML spec, and finally, Client-Side runtime is last to take effect and is therefore the most current setting. 

    Is there a document I'm unaware of that specifies these details for all the editor's settings?
     
    Great documentation would save us all a huge amount of time, effort and frustration.  It would have helped if the existing documentation could be searched.
     
    Thanks,
     
    Randal

    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

  •  04-12-2005, 9:57 PM 5658 in reply to 5653

    Re: Automation and options relating to pasting HTML from MS Word -- Need documentation

     randal wrote:

    1)    Server-Side code (VB): Editor.EditorOnPaste = CuteEditor.PasteBehavior.PasteWord
    2)    In the HTML tag:  <CE:Editor ... EditorOnPaste="PasteWord" ... />

    I've placed my server-side code in the Page_Load subroutine.  Is that what you'd recommend? 
     
    It's not necessary using the server-side code to specify the editor properties.

    Just simply specify the editor properties in the HTML tag.
     
    <CE:Editor ... EditorOnPaste="PasteWord" Height ="400" Width="800" ... />
     
     

    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

  •  04-12-2005, 10:15 PM 5661 in reply to 5658

    Re: Automation and options relating to pasting HTML from MS Word -- Need documentation

    Okay, so I asked too many questions or added too much context.  I'll make them clearer:
     
    Where is the best documentation on this and other features in the editor? 

    For example, is there more documentation available to licensed users that is not found publicly on your website?
     
    I know that one need only specify the setting in one place (either the server code or the HTML tag), but I wanted to know how to change it from client-side code, if I wanted to, AND if it could be specified in a configuration file.  I am asking in order to gain a complete understanding and I expect to apply the lessons about this one setting to other features in your editor.
     
    I would like to know the priorities of conflicting settings in multiple contexts if it can be easily specified.  This is not a pressing question, but a good one, nevertheless.
     
    Thanks
View as RSS news feed in XML