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));
<obout:Editor runat="server" Id="editor" EditPanel-OnClientLoaded="editPanelLoaded" ... />


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.

"My Feedback for Product: The obout GRID control is the best and easiest grid control I have ever used till date. It has all the features that needs to be, within a GRID and it’s so user friendly that even a layman can use it just by drag and drop and few lines of code. My Feedback for Support: Honestly speaking, I had not expected the first response from obout that quickly. I mean, I got the response to my query in less than 20 minutes (which is really amazing) and I was really shock to see that. And also, good to see the way Obout team works to fix the issue so quickly. Please continue do design and develop the best tools that are really helpful for the developers in the IT market."

Rohan Lopes

Random testimonial   All testimonials