A plugin for Sketch to insert Lorem Ipsum into any selected text fields. Originally by @richgong, I forked this to add more Lorem.
Currently features unique 10 paragraphs of Lorem Ipsum.
- Download or clone this repository
- Double click the
.sketchplugin
file to open Sketch and install the plugin
- Select text fields
- Use the keyboard shortcut:
Shift + Ctrl + L
You can also use the plugin from the menu (Plugins > Lorem Ipsum Generator > Fill out text fields)
- Limit the amount of Lorem inserted by the text field size. Plugin currently shoves an entire paragraph into each text field, no matter the length, requiring users to manually delete text each time. Solution: Calculate length of text container + size of glyphs (see script from Sketch-Highlighter - search for
textLayer.frame().size().width,
andlayoutManager.numberOfGlyphs();
) - An actual Lipsum generator algorithm (without connecting to lipsum.com)