1.0.6 • Published 3 years ago

typeface-editor v1.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Typeface

image info

Typeface is a fast, lightweight and easy to use rich text editor package for react.js You can checkout a live demo here

Features

  • Add responsive images and videos
  • Change font colour
  • View and edit html for your text
  • provide a custom label and description to your editor

Installation

Install using npm

npm install --save typeface-editor

Parameters

ParameterValueRequired
getdataFunctionRequired
valueStringOptional
optionsArray of stringsOptional
labelStringOptional
descriptionStringOptional
themeStringOptional

Options

const optionalData = [
  "blockquote",
  "video",
  "code",
]

Usage

import React,{ useState } from "react"
import Typeface from "typeface-editor"

function App() {

const [data,setData] = useState("");

const additionalOptions = [
"blockquote",
"video",
"code",
]

return (
<div>
  <Typeface
    options={additionalOptions}
    label="Typeface Editor Demo"
    description="rich text editor for react"
    theme='#FFCA41'
    value = "<h1>Hello World</h1>"
    getdata={(value)=>setData(value)}
  />
</div>
)
}
1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago