npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vue-text-editor-fy

v0.1.3

Published

A vue2 and vuetify2 based text editor to beautify the text and text box with elegant editing properties.

Downloads

15

Readme

vue-text-editor-fy

Demo

Demo

Requirements

"vue": "^2.*",
"vuetify": "^2.4.*"

Installation

npm install --save vue-text-editor-fy

or

yarn add vue-text-editor-fy

Declaration

Global Import (In main.js file)

import VueTextEditorFy from "vue-text-editor-fy"
Vue.component("VueTextEditorFy", VueTextEditorFy);

Local Import (In any component)

<script>
import VueTextEditorFy from "vue-text-editor-fy"

export default {
  name: "HelloWorld"
  components: {
    VueTextEditorFy
  }
}
<script>

Basic Usage

Example-1

<VueTextEditorFy
  :item="{
    id: 2,
    text: 'Dummy Text',
    bold: false,
    italic: false,
    color: '#000',
    background: '#607D8B',
    fontSize: 'title',
    fontFamily: 'monospace',
  }"
></VueTextEditorFy>

Example-2

<VueTextEditorFy
  type="v-text-field"
  :solo="true"
  :colors="['#000', '#fff']"
  :item="{
    id: 1,
    text: 'Dummy Text',
    bold: false,
    italic: false,
    color: '#000',
    background: '#607D8B',
    fontSize: 'body-2',
    fontFamily: 'sans-serif',
  }"
></VueTextEditorFy>

Properties

  • item

    • Type - Object
    • Required - Yes
    • Description - This prop is going to have all values of edit propeties.
    • Properties - | Name | Type | Required | Description | Example Values | | ---- | ---- |--------- |------------ |--------------- | | id | Number/String | Yes | This is a unique value for each text component. | 1, 3816, 'abcd-234-sdf'| | text | String | Yes | The text to display | any string| | bold | Boolean | No | To bold the input text. | true/false | | italic | Boolean | No | To italic the text. | true/false | | color | String | No | To change the color of text. | any hex color value | | background | String | No | To change the background color of text field | any hex color value | | fontSize | String | No | To change the size of text | "subtitle-1","subtitle-2","body-1", "body-2","button","caption","overline" | | fontFamily | String | No | To change the background color of text field | "serif","sans-serif","monospace","cursive","fantasy","system-ui","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","emoji","math","fangsong" |
  • type

    • Type - String
    • Required - No
    • Description - To decide the type on text box, either textarea of input.
    • Default - "v-textarea"
    • Support values - "v-text-field", "v-textarea"
  • colors

    • Type - Array
    • Required - No
    • Description - Choices for background and font colors.
    • Default - ["#F5F5F5", "#FFAC77", "#FFEB3B", "#CDDC39", "#41BBB4", "#FFC107", "#8BC34A", "#F587C7", "#FB8C01", "#4CAF50","#2196F3", "#607D8B","#E53935", "#1A76D2", "#E91E63", "#795548", "#9C27B0", "#000000"]
    • Support values - Array of any number of hex color values.
  • solo

    • Type - boolean
    • Required - No
    • Description - To give text box a card kind of look.
    • Default - false
    • Support values - true/false.