All Projects → jspaine → quill-placeholder-module

jspaine / quill-placeholder-module

Licence: MIT License
A quill module for adding placeholders

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
CSS
56736 projects

Projects that are alternatives of or similar to quill-placeholder-module

Quill Cursors
A multi cursor module for Quill text editor.
Stars: ✭ 139 (+414.81%)
Mutual labels:  module, quill
React Native Shimmer Placeholder
Placeholder/ Skeleton of React Native
Stars: ✭ 679 (+2414.81%)
Mutual labels:  module, placeholder
react-hold-animation
A higher-order component be use for add animation effects to the placeholder witch in react-hold.
Stars: ✭ 14 (-48.15%)
Mutual labels:  placeholder
mediawiki-antispam
Antispam extension for MediaWiki.
Stars: ✭ 15 (-44.44%)
Mutual labels:  module
vscode-requirejs
Provides goto definition functionality for require js modules.
Stars: ✭ 20 (-25.93%)
Mutual labels:  module
podpodge
Convert YouTube playlists to audio-only RSS feeds for podcast apps to consume.
Stars: ✭ 32 (+18.52%)
Mutual labels:  quill
craft-module-field-type
Craft CMS 3 lib → collection of base classes for easier implementing new field types being used in matrix blocks for content modules
Stars: ✭ 14 (-48.15%)
Mutual labels:  module
vbl
A collection of useful Bash modules to simplify everyday programming
Stars: ✭ 15 (-44.44%)
Mutual labels:  module
nginx-ntlm-module
A nginx module to allow proxying requests with NTLM Authentication.
Stars: ✭ 32 (+18.52%)
Mutual labels:  module
alibabacloud-tairjedis-sdk
alibabacloud-tairjedis-sdk
Stars: ✭ 30 (+11.11%)
Mutual labels:  module
koleton
The easiest library to show skeleton screens in an Android app.
Stars: ✭ 84 (+211.11%)
Mutual labels:  placeholder
htmlgo
Type safe and modularize way to generate html on server side.
Stars: ✭ 43 (+59.26%)
Mutual labels:  module
QtApng
An apng image plugin for Qt to support animated PNGs
Stars: ✭ 75 (+177.78%)
Mutual labels:  module
HistoryPx
Extended History Information and Last Output Support in PowerShell
Stars: ✭ 62 (+129.63%)
Mutual labels:  module
Moduler
Android Moduler 组件化demo
Stars: ✭ 33 (+22.22%)
Mutual labels:  module
nuxt-storyblok-queries
Nuxt.js module to simplify queries to the Storyblok API
Stars: ✭ 17 (-37.04%)
Mutual labels:  module
terraform-aws-elasticache
Terraform module to create Elasticache Cluster and replica for Redis and Memcache.
Stars: ✭ 19 (-29.63%)
Mutual labels:  module
webtrees-pedigree-chart
SVG based pedigree chart module for webtrees genealogy application.
Stars: ✭ 24 (-11.11%)
Mutual labels:  module
ngx-ionic-image-viewer
An Ionic 4 Angular component to view & zoom on images and photos without any additional dependencies.
Stars: ✭ 129 (+377.78%)
Mutual labels:  module
tall
Promise-based, No-dependency URL unshortner (expander) module for Node.js
Stars: ✭ 56 (+107.41%)
Mutual labels:  module

quill-placeholder-module

Quill module for adding placeholders. Demo

Install

npm install --save quill-placeholder-module

Usage

import getPlaceholderModule from 'quill-placeholder-module'
// es5
var getPlaceholderModule = require('quill-placeholder-module').default
// umd
var getPlaceholderModule = PlaceholderModule.default

Quill.register('modules/placeholder', getPlaceholderModule(Quill, {
  className: 'ql-placeholder-content'  // default
}))

var quill = new Quill('#editor', {
  modules: {
    toolbar: {container: `#toolbar`},
    placeholder: {
      delimiters: ['{', '}'],  // default
      placeholders: [
        {id: 'foo', label: 'Foo'},
        {id: 'required', label: 'Required', required: true}
      ]
    }
  },
  placeholder: 'Compose an epic...',
  theme: 'snow'  // or 'bubble'
});

Define the toolbar menu (a more complete example can be found in the demo):

<div id="toolbar">
  <select class="ql-placeholder">
    <option value="foo">Foo</option>
    <option value="required">Required</option>
  </select>
</div>
<div id="editor"></div>

And include the css from dist/toolbar.css.

The markup will contain (with default options) <span class="ql-placeholder-content" data-id="placeholder-id" data-label="placeholder-label">...</span>

To transform the output check out https://github.com/jspaine/html-ast-transform

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].