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.isCommandActive(CommandName)

Gets whether the specified command is active.

Syntax

editor.isCommandActive(CommandName)

Parameter

Type: string

Command name.

Return Value

Type: boolean

True if the command is active, false if not.

Example:

var editor1 = new RichTextEditor("#div_editor1");      
editor1.clearHistory();      
console.log("after clear history, can undo : " + editor1.isCommandActive("undo"));   
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.