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.

"Obout is one impressive company. I’ve been developing hardware and software for about 35 years and I have not seen a company that has done such an incredible job with their website in support of their software, to say nothing about the quality of the various objects you have created at a very reasonable price!!"

Greg Schneider
Founding Director - HEAL Project

Random testimonial   All testimonials