All Projects → YurkaninRyan → Slate Sticky Inlines

YurkaninRyan / Slate Sticky Inlines

A Slate plugin that makes it possible to edit the edges of Inlines.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to Slate Sticky Inlines

dotfiles
josh-'s all important dotfiles.
Stars: ✭ 20 (+0%)
Mutual labels:  slate
yii2-rest-doc
Yii2 REST doc generator
Stars: ✭ 35 (+75%)
Mutual labels:  slate
Slate
WIP - An open source Filecoin storage and retrieval client that makes it easy to collect, organize, and share data anywhere.
Stars: ✭ 383 (+1815%)
Mutual labels:  slate
slate-cli
This repo has been deprecated. Please open any new issues or PRs in the Shopify/slate repo.
Stars: ✭ 19 (-5%)
Mutual labels:  slate
richer
jquery free ajax cart for shopify
Stars: ✭ 35 (+75%)
Mutual labels:  slate
docker
docker environment for PHP developers
Stars: ✭ 12 (-40%)
Mutual labels:  slate
svelte-slate
slate svelte view layer
Stars: ✭ 43 (+115%)
Mutual labels:  slate
Widdershins
OpenAPI / Swagger, AsyncAPI & Semoasa definitions to (re)Slate compatible markdown
Stars: ✭ 856 (+4180%)
Mutual labels:  slate
remark-slate-transformer
remark plugin to transform remark syntax tree (mdast) to Slate document tree, and vice versa. Made for WYSIWYG markdown editor.
Stars: ✭ 62 (+210%)
Mutual labels:  slate
Re Editor
一个开箱即用的React富文本编辑器 🚀re-editor
Stars: ✭ 367 (+1735%)
Mutual labels:  slate
publikator-frontend
[DEPRECATED] moved to https://github.com/republik/plattform Our CMS frontend, including a rich text editor implemented with Slate.
Stars: ✭ 16 (-20%)
Mutual labels:  slate
slate-react-dnd-plugin
No description or website provided.
Stars: ✭ 35 (+75%)
Mutual labels:  slate
node-slate
📓 Node.js port of lord/slate
Stars: ✭ 18 (-10%)
Mutual labels:  slate
go-slate
A CLI tool to generate API documentation using Slate layout by Robert Lord
Stars: ✭ 19 (-5%)
Mutual labels:  slate
Slate Plugins
🔌 Next-gen slate plugins
Stars: ✭ 399 (+1895%)
Mutual labels:  slate
slate-markdown
Add live markdown preview support to your Slate editor.
Stars: ✭ 45 (+125%)
Mutual labels:  slate
slate-yjs-example
Minimal example project for slate-yjs
Stars: ✭ 43 (+115%)
Mutual labels:  slate
Slate
🌌 A new, strongly-typed, fast, and secure programming language made for WebAssembly.
Stars: ✭ 15 (-25%)
Mutual labels:  slate
Slate
A completely customizable framework for building rich text editors. (Currently in beta.)
Stars: ✭ 23,104 (+115420%)
Mutual labels:  slate
Theme Scripts
Theme Scripts is a collection of utility libraries which help theme developers with problems unique to Shopify Themes.
Stars: ✭ 337 (+1585%)
Mutual labels:  slate

slate-sticky-inlines

A Slate plugin that makes it possible to edit the edges of Inlines.

Demo

http://ryanyurkan.in/slate-sticky-inlines

Install

npm install slate-sticky-inlines

Usage

import StickyInlines from 'slate-sticky-inlines'

const plugins = [
  StickyInlines({
    allowedTypes: ['link'],
    bannedTypes: ['file'],
    canBeEmpty: true,
    hasStickyBoundaries: true,
    stickOnDelete: true,
  })
]

Arguments

  • allowedTypes [:String] — An array of specific Inline Types that should be sticky. Defaults to allowing all types to be sticky.
  • bannedTypes [:String] — An array of specific Inline Types that shouldnt be sticky. Defaults to an empty Array.
  • canBeEmpty Boolean — Controls whether or not you need to delete twice to get rid of a sticky inline. Defaults to True.
  • hasStickyBoundaries Boolean — Controls whether or not an extra step is introduced at the boundaries of sticky inlines, which allows you to switch the bounds you are in without moving the text caret. Defaults to True.
  • stickOnDelete Boolean — Controls whether on not deleting 'into' a sticky inline should cause the caret to cross over and be inside the sticky inline. Defaults to True.

Development

Clone the repository and then run:

npm install
npm watch

And open the example page in your browser:

http://localhost:8888/

License

The MIT License

Copyright © 2017, Ryan Yurkanin

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

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].