Topbar
  • Client Center
  • Support
RichTextEditor
  • Home
  • Demos
  • Features
  • Blazor Editor
  • Document
  • Pricing
  • Download

  1. Home
  2. Documents
  • Examples
  • Documents
    HomeInstallation (div)Installation (textarea)ConfigurationConfiguration ReferenceSetting and Getting data
  • Javascript API
    InitializationAll CommandsAll PropertiesAll MethodsHandle EventUpload files
  • Javascript Method List
    execCommandattachEventdetachEventgetHTMLCodesetHTMLCodegetPlainTextgetReadOnlysetReadOnlyisCommandEnabledisCommandActivesetContentCssTextsetPreviewCssTextinsertRootParagraphinsertByTagNamesurroundByTagNameinsertElementsurroundElementinsertTextinsertHTMLselectControlselectDoccollapsedeletefocuscommitBookmarkclearHistorynotifySelectionChangehtmlEncodehtmlDecodegetDocumentgetEditablegetSelectiongetSelectedControlgetSelectionElementgetSelectedTextcreateToolbarButtoncreateToolbarDropDowncreateDialogcloseCurrentPopupsetImageForCommand
  • JS Event List
    exec_commandchangeselectionchange

editor.change event

This event is raised if the content of RichTextEditor is changed by either a programmatic modification or user interaction.

Syntax

function(state,cmd,value)

Example:

editor1.attachEvent("change", function () {      
    var textCount = editor1.getPlainText().trim().length;      
    document.title = "textCount:" + textCount;      
});   
RichTextEditor
  • 198 Kennedy St West
  • Aurora, ON, L4G2L7
  • Canada
Resources
  • Pricing
  • Demos
  • Support Ticket
  • Company
  • Document
  • Customers
  • Client Center
Editor Products
  • Blazor Rich Text Editor
  • Javascript Rich Text Editor
  • Rich Text Editor for .NET
  • Rich Text Editor for PHP
  • Rich Text Editor for ASP
Products
  • Javascript Obfuscator
  • Free Chat Software
  • Free Video Chat Room
  • Free .NET obfuscator
  • On-premises Live Chat
  • Blazor Uploader
  • Ajax Uploader
  • ASP Uploader
  • PHP File Uploader
  • Privacy & Policy
  • Terms
  • About Us

Copyright 2003-2024 Rich Text Editor. All rights reserved.

JavaScript Rich Text Editor is a feature-rich WYSIWYG HTML editor which allows your users create rich text content.