A starting place for creating a custom element
- Node.js (>= 10.17.0)
- npm (>= 6.11.0)
- Tailor (>= 3.2.3)
- Node.js & npm: https://nodejs.org/en/download/
- Tailor: https://github.com/ExtensionEngine/tailor
- Degit: https://github.com/Rich-Harris/degit (installed globally)
- Open the terminal
- Go to the
<local-tailor-repo>/extensions/content-elements
folder - Run
degit ExtensionEngine/tailor-element-template <name-of-folder>
This repository contains the basic structure needed to create a custom content element. The files inside of it contain code or the template of the code which is needed to successfuly extend Tailor with a custom content element. Any piece of code which needs to be customized for the basics to work is marked with appropriate comments.