New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@singleware/ui-editor

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@singleware/ui-editor

Singleware UI editor package.

latest
Source
npmnpm
Version
1.0.48
Version published
Maintainers
1
Created
Source

UI-Editor

Custom HTML element to be used as a WYSIWYG editor, this custom element provides a simple way to edit rich texts using the latest browser technologies.

State Attributes

NameDescription
emptyAutomatically assigned when there is content into the editor
invalidAutomatically assigned when the editor content is required but there is no content

Properties

NameDescription
emptyGet the empty state from the editor
nameGet and set the editor name
valueGet and set the editor content
defaultValueGet and set tje editor default value
requiredGet and set the required state
readOnlyGet and set the readOnly state
disabledGet and set the disabled state
preserveSelectionGet and set the preserve selection state.
paragraphTypeGet and set the paragraph tag name
deniedTagsGet and set the denied tag list
orientationGet and set the editor orientation mode. Use: row or column value
selectedRangeGet the current selection range
selectedTextGet the current selection text
selectedHTMLGet the current selection HTML
selectedStylesGet the current selection styles

Methods

NameDescription
setRemovalStateChange the removal state of an element.
setRenderingStateChange the rendering state of an element.
clearSelectionRemoves any active selection in the editor content
focusMove the focus to the content child into the editor
resetReset the content child into the editor to its initial value
checkValidityCheck whether the editor content is valid
formatActionFormats the specified tag for the selection or insertion point
fontNameActionChange the font name for the selection or at the insertion point
fontSizeActionChange the font size for the selection or at the insertion point
fontColorActionChange the font color for the selection or at the insertion point
lineHeightActionChange line height for the selection or at the insertion point
undoActionUndoes the last executed command
redoActionRedoes the previous undo command
boldActionToggles bold on/off for the selection or at the insertion point
italicActionToggles italics on/off for the selection or at the insertion point
underlineActionToggles underline on/off for the selection or at the insertion point
strikeThroughActionToggles strikeThrough on/off for the selection or at the insertion point
unorderedListActionCreates a bulleted unordered list for the selection or at the insertion point
orderedListActionCreates a numbered ordered list for the selection or at the insertion point
alignLeftActionJustifies the selection or insertion point to the left
alignCenterActionJustifies the selection or insertion point to the center
alignRightActionJustifies the selection or insertion point to the right
alignJustifyActionJustifies the selection or insertion point
outdentActionOutdents the line containing the selection or insertion point
indentActionIndents the line containing the selection or insertion point
cutActionRemoves the current selection and copies it to the clipboard
copyActionCopies the current selection to the clipboard
pasteActionPastes the clipboard contents at the insertion point

Slots

NameDescription
toolbarElement to contain all toolbar controls
contentElement to contain all editor data (rich text, html, etc)

Events

NameDescription
changeDispatched when the content into the editor is changed

Install

Using npm:

npm i @singleware/ui-editor

License

MIT © Silas B. Domingos

Keywords

editor

FAQs

Package last updated on 28 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts