Skip to content

rismanss/textType

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

textType

textType is simple text editor.

Demo here.

Download library here.

Or you can install:

npm i --save texttype

example

Example using textType :

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title>textType</title>
    <link type="text/css" rel="stylesheet" href="textType.css" />
  </head>
  <body>

    <div id="textType"></div>

    <script src="textType.js"></script>
    <script>
      textType({
        selector: '#textType',
      });
    </script>
  </body>
</html>

Customization

Customization selector, data, font, heading, align .

textType({
  selector : '#example',
  data: ['align','heading','bold','italic','underline','font','link','image'], // should be array
  font: ["Times New Roman","Arial","Ubuntu","Courier New","Verdana","fantasy"], // should be array
  heading: ['H1','H2','H3'], // should be array
  align: ['Left','Center','Right','Full']
});

selector : all selector (id, class, tag) .

data : ['align','heading','bold','italic','underline','font','link','image'] .

font : [all font] .

heading: ['H1','H2','H3','H4','H5'] .

align: ['Left','Center','Right','Full'] .

License

This plugin is available under the MIT License.

About

simple text editor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors