Skip to content

Example implementation of the serlo webcomponent editor in a lit environment

Notifications You must be signed in to change notification settings

serlo/serlo-editor-lit

Repository files navigation

Quickstart guide for the @serlo/editor-web-component in lit

Lit is a webcomponent framework by Google. The Serlo Editor integrates natively into any environment due to its support for webcomponents. This repo is a minimal barebones example on how to get a Serlo editor started in a lit environment.

Usually, lit is used with TypeScript but to keep the sample small we have opted for the tiniest example possible. All principles apply equally to any other environment that lit can be set up in.

Usage

  1. yarn
  2. yarn start

Usage with local editor-web-component

  1. Clone the frontend repo
  2. cd packages/editor && yarn yalc:publish
  3. cd ../editor-web-component && yalc add @serlo/editor && yarn yalc:publish
  4. Navigate into this repo and do yalc add @serlo/editor-web-component && yarn start

About

Example implementation of the serlo webcomponent editor in a lit environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published