1.1.3 • Published 8 months ago

linkedin-text-editor v1.1.3

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

Linkedin Text Editor

A customizable text editor component for React, featuring rich text formatting options like bold, italic, and underline for selected text. Perfect for simple text-editing needs in applications that require basic styling functionality in a text editor.

Features

  • Bold, Italic, and Underline styling for selected text.
  • Customizable dimensions and styles for flexible layout.
  • Easy integration and usage within React applications.
  • TypeScript support (optional), with type definitions for enhanced development experience.

Installation

Install the component from npm:

npm i linkedin-text-editor

Usage

App Screenshot

Props

PropTypeDefaultDescription
placeholderstring"Type here..."Placeholder text for the editor
widthstring or number"100%"Width of the editor container
heightstring or number"100%"Height of the editor container
containerStyleobject{}Custom styles for the editor container
onChangefunctionundefinedCallback function to handle editor content changes
valuestringundefinedInitial value for the editor content

Styling

Text styles are applied by selecting the text within the editor and clicking on the relevant style icons (Bold, Italic, or Underline). The TextEditor component automatically applies the selected style to the currently highlighted text.

Contributing

Contributions are welcome! Please fork this repository and submit a pull request.

1.1.1

8 months ago

1.1.0

8 months ago

1.0.9

8 months ago

1.0.8

8 months ago

1.1.3

8 months ago

1.1.2

8 months ago

1.0.7

8 months ago

1.0.6

8 months ago

1.0.5

8 months ago

1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago