TextBox duplicates pasted content

Total Post:149

Points:1043
 1220  View(s)
Ratings:
Rate this:

I am using a FreeTextBox: 

<FTB:FreeTextBox ID="txtFreeTextBox"
RemoveServerNameFromUrls="false"
ToolbarLayout="ParagraphMenu,FontFacesMenu,FontSizesMenu,FontForeColorsMenu|Bold,Italic,Underline,Strikethrough;Superscript,Subscript,RemoveFormat|JustifyLeft,JustifyRight,JustifyCenter,JustifyFull;BulletedList,NumberedList,Indent,Outdent;CreateLink,Unlink,InsertImageFromGallery,InsertRule,InsertTable|Cut,Copy,Paste;Undo,Redo,Print"
runat="Server" Width="100%"
BackColor="239,239,240"ImageGalleryUrl="../../ftb.imagegallery.aspx?rif=Public/RootImages/&cif=Public/RootImages/">
</FTB:FreeTextBox>

The problem is that when I paste into it, it pastes it two times. Is there something to solve this?

  1. Post:378

    Points:2694
    Re: TextBox duplicates pasted content

    Hi Royce, 

    <script type="text/javascript">
        FTB_FreeTextBox.prototype.CancelEvent = function (ev) {
            try{            ev.preventDefault();            ev.stopPropagation();
            }
            catch (e) {
                if(FTB_Browser.isIE) {                ev.cancelBubble = true;                ev.returnValue = false;
                }
            }
        };
    </script>

      Modified On Apr-05-2018 04:48:53 AM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!