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

@alump/alump-vaadin-rich-text-editor

v1.2.0-alump10

Published

alump-vaadin-rich-text-editor

Downloads

9

Readme

alump's fork of vaadin-rich-text-editor

Notice this fork keeps the original license. So you need to have license to use vaadin-rich-text-editor.

This is my custom version of vaadin-rich-text-editor. It adds following features:

  • Font size/family/color/background pickers
  • Horizontal line support
  • Indentation support
  • Additional server side handled toolbar buttons (WIP)
  • Moah...

screenshot

Develop (Bower)

This project is still written with Polymer 2, and using Bower. This mode can be used when developing it. Notice that this is planned to be released as Polymer 3 / NPM, and next section covers that

npm install

Bower install might offer versions for dependencies. Select 1.5.0 for vaadin-lumo-styles.

bower install

npm start

These steps will get demo app running. Add /demo to end of URL to see the demo page.

Compile NPM

This guide is to get a local Polymer 3 / NPM version, that can be used to test it with alump-vaadin-rich-text-editor-flow.

Tools needed

npm install -g polymer-modulizer npm iinstal -g magi-cli npm install -g husky

Make sure naming and version is correct at package.json and bower.json

Just make sure you have updated naming and versioning on these files before running the following steps. package.json will get replaced, but naming and versioning will be kept.

Convert to Polymer 3

As this project is/was originally done with bower / Polymer 2, it has to be converted to npm and Polymer 3 before npm package can be create. Following steps will convert the project. Notice that it will create commit and radically change the project setup. To return back to initial state, just stash, and reset HEAD~1 and clean -f the changes with git.

Notice that bower install is ran multiple times, and it might ask for dependency versions to use. For vaadin-lumo-styles select the version defined above.

rm -fr bower_components node_modules && bower i && magi p3-convert --out . --import-style=name npm install

Run

polymer serve --npm --module-resolution=node --port=3000 -H 127.0.0.1 --open

Release your own version

This step assumes you have updated the package info to point to your personal NPM repository naming. Also make sure your version is correct.

npm publish --access=public

Flow parts to use app on Vaadin 14+

Repository for flow parts: github.com/alump/alump-vaadin-rich-text-editor-flow

Known issues

git commit issues

Use no-verify, I haven't spent time making sure verify steps work

git commit --no-verify

Release history

1.2.0-alump10 (alump9 skipped because of reasons)

  • Remove tooltip from dataentry as it causes issues
  • Allow to define tools offered on toolbar

1.2.0-alump8

  • Optional API to have custom link edit/add handling

1.2.0-alump7

  • Missing focus, select and blur methods added

1.2.0-alump6 (including skipped 1.2.0-alump5 changes)

  • Minor bug fixes (mainly event handling)
  • Upgrade dependendencies to Vaadin 14.2
  • Emit value change event after adding data entry (to help flow API)

1.2.0-alump4

  • Adding index option to data entry method to make sure it will get right location event after the server round trip.
  • Add white space before data entry if at index 0: Quill Bug: https://github.com/quilljs/quill/issues/3045
  • Fix typo in I18N key
  • Add selection lenght value to server-button-clicked even for future use

1.2.0-alump3 - 1.2.0-alump1 (unpublished)

  • alump3: Convert data entry to inline element to not break blocks
  • alump2: Adjusted dependendencies to be more strict on versions
  • alump1: First try

Original README...

npm version Bower version Published on webcomponents.org Build Status Coverage Status Gitter

Published on Vaadin  Directory Stars on vaadin.com/directory

<vaadin-rich-text-editor>

Live Demo ↗ | API documentation ↗

<vaadin-rich-text-editor> is a Web Component providing rich text editor functionality, part of the Vaadin components.

<vaadin-rich-text-editor>
  ...
</vaadin-rich-text-editor>

Installation

The Vaadin components are distributed as Bower and npm packages. Please note that the version range is the same, as the API has not changed. You should not mix Bower and npm versions in the same application, though.

Unlike the official Polymer Elements, the converted Polymer 3 compatible Vaadin components are only published on npm, not pushed to GitHub repositories.

Polymer 2 and HTML Imports compatible version

Install vaadin-rich-text-editor:

bower i vaadin/vaadin-rich-text-editor --save

Once installed, import it in your application:

<link rel="import" href="bower_components/vaadin-rich-text-editor/vaadin-rich-text-editor.html">

Polymer 3 and ES Modules compatible version

Install vaadin-rich-text-editor:

npm i @vaadin/vaadin-rich-text-editor --save

Once installed, import it in your application:

import '@vaadin/vaadin-rich-text-editor/vaadin-rich-text-editor.js';

Getting started

Vaadin components use the Lumo theme by default.

To use the Material theme, import the correspondent file from the theme/material folder.

Entry points

  • The component with the Lumo theme:

    theme/lumo/vaadin-rich-text-editor.html

  • The component with the Material theme:

    theme/material/vaadin-rich-text-editor.html

  • Alias for theme/lumo/vaadin-rich-text-editor.html:

    vaadin-rich-text-editor.html

Running demos and tests in a browser

  1. Fork the vaadin-rich-text-editor repository and clone it locally.

  2. Make sure you have npm and Bower installed.

  3. When in the vaadin-rich-text-editor directory, run npm install and then bower install to install dependencies.

  4. Make sure you have polymer-cli installed globally: npm i -g polymer-cli.

  5. Run npm start, browser will automatically open the component API documentation.

  6. You can also open demo or in-browser tests by adding demo or test to the URL, for example:

  • http://127.0.0.1:3000/components/vaadin-rich-text-editor/demo
  • http://127.0.0.1:3000/components/vaadin-rich-text-editor/test

Running tests from the command line

  1. When in the vaadin-rich-text-editor directory, run polymer test

Following the coding style

We are using ESLint for linting JavaScript code. You can check if your code is following our standards by running npm run lint, which will automatically lint all .js files as well as JavaScript snippets inside .html files.

Big Thanks

Cross-browser Testing Platform and Open Source <3 Provided by Sauce Labs.

Contributing

To contribute to the component, please read the guideline first.

License

Commercial Vaadin Add-on License version 3 (CVALv3). For license terms, see LICENSE.

Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.