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

pom-text-editor

v0.2.28

Published

Vue 3 Pom Text Editor: A customizable, free text editor designed for modern web applications, crafted with Vue 3. Although still under development, pom-text-editor aims to deliver a seamless and powerful rich text editing experience with features like dyn

Downloads

236

Readme

PomTextEditor

PomTextEditor is a Vue 3 component library that provides a customizable and lightweight text editor for your Vue applications.

Installation

To install PomTextEditor, use either npm or yarn:

npm

bash

Copy code

npm install pom-text-editor

yarn

bash

Copy code

yarn add pom-text-editor

Usage

Global Registration

To use the editor globally in your Vue 3 application, register it in your main file (e.g., main.js or main.ts).

js Copy code

import { createApp } from 'vue';

import App from './App.vue';

import Editor from 'pom-text-editor'; // Correct import path

import 'pom-text-editor/dist/style.css'; Optional: Update based on actual location


const app = createApp(App);

app.component('Editor', Editor); // Register the component globally

app.mount('#app');

Component Usage

After registering, you can use the Editor component in any Vue component.

Copy code
<template>

<Editor @change="resultData" />

</template>

<script  setup>
function  resultData(val)  {
console.log(val,  'Your HTML content');
}
</script>

Text-Only Output

For plain text output without any HTML tags, use the TextOnly attribute.

Copy code
<template>
<Editor  TextOnly="true" @change="resultData" />
</template>

Customizing the Toolbar

You can customize the editor toolbar using slots.

Copy code

<template>
<Editor maxHeight="40vh" @change="resultData">
<template  v-slot:toolbar-after>
<div  class="custom-toolbar-btn">12</div>
<div  class="custom-toolbar-btn">14</div>
</template>

<template v-slot:toolheader-before>
<component @click="alert('Hello 5')" class="custom-header-btn">Hello5</component>
<component @click="alert('Hello 6')" class="custom-header-btn">Hello6</component>
</template>
</Editor>
</template>

<script  setup>
function  resultData(val)  {
console.log(val,  'Your HTML content');
}
function  alert(message)  {
console.log(message);
}
</script>

CSS

The CSS for PomTextEditor is included within the JavaScript bundle, so no separate import is required. To customize styles, you can add additional styles to your main stylesheet or use scoped styles in your components.

Documentation

Full documentation and customization options will be available soon.

Contributing

We welcome contributions! To contribute:

Fork the repository.

Create a feature branch: git checkout -b feature/your-feature.

Commit your changes: git commit -m 'Add new feature'.

Push to the branch: git push origin feature/your-feature.

Open a Pull Request.

Contributors

[email protected] – Lead Project Maintainer

[email protected] – Project Maintainer

License

PomTextEditor is licensed under the MIT License. See the LICENSE file for more details.

Contact

For any questions or suggestions, feel free to reach out at [email protected].