ASP.NET 3.5 and above only

Obout.Ajax.UI Controls - HTML Editor - Client side

Obout.Ajax.UI.HTMLEditor.PrePasteArgs class

 Inheritance Hierarchy

Argument of this type is passed to the handlers of the prePaste event.
Note Note
To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes. For example, to get or set a value for a property such as html, you call the get_html or set_html methods:
<script type="text/javascript">
  // do some things on the edit panel load
  function editPanelLoaded(editPanel, args) {
       // get the DesignPanel
       var designMode = Obout.Ajax.UI.HTMLEditor.ActiveModeType.Design;
       var designPanel = editPanel.get_modePanels()[designMode];
       // 'prePaste' event handler
       function onMyPrePaste(designPanel, args) {
           // get the html to be pasted
           var htmlToBePasted = args.get_html();
           // you can change the html to be pasted
           args.set_html("<span style='color: #FF0000'>HELLO</span>");
       }
       // add the handler to the 'prePaste' event
       designPanel.add_prePaste(Function.createDelegate(designPanel, onMyPrePaste));
  }
</script>
...
<obout:Editor runat="server" Id="editor" EditPanel-OnClientLoaded="editPanelLoaded" ... />

Properties

Name Description
propertyhtml string. Gets or sets the HTML content to be pasted.
propertyinnerCopy boolean. Gets a value indicating whether the content to be pasted was copied(cut) from this design panel and the design panel was not blurred.

"I just waned to give you all many thanks for the level of support you provide. I have dealt with a few 3rd party software providers and have never seen this level of support anywhere. This on top of an awesome set of .NET controls that adds so much to a web application. I can't thank you guys enough. Keep up the good work and I look forward to seeing even more first class controls from Obout."

Mohsen Kashani
Contractor

Random testimonial   All testimonials