peterpeterparker / stylo

Another kind of rich text editor

Home Page:https://stylojs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Integration of Stylo inside of other webcomponents

jogibear9988 opened this issue · comments

Feature Description

I'm creating a designer for usage with webcomponents: https://github.com/node-projects/web-component-designer (demo: https://node-projects.github.io/web-component-designer-demo/index.html)).
Inside of this I try to include stylo as a editor of rich text content.
For this some bugs/fixes need to be made.
I create a pull request when I got it workin, than we can discuss how to integrate the needed changes. (If you'd like to)

Use Case

Usage of stylo inside of webcomponents and a designer

Here is an example of my integration 👍
node-projects/web-component-designer@9c335a1

Sure great idea. Did you manage to make it happen with your PR?

With my PR (to stylo) it will work in my designer.

I'll look to rework my pull request in the evening, and write back when I'm ready

Just reopen it because I am doing a couple of things to finalize it ;)

Get shadow or doc selection and range across the lib 👉 #44

Wider safe area for toolbar 👉 #45

Refactor css utils 👉 #46

Small refactor to detect content editable 👉 #47

Fixed incorrect import ending with.js (in #44 too)

Group event information for toolbar 👉 #48

This has now been released in v0.0.8. Thanks a lot for the help and PR 🙏