xdan / jodit

Jodit - Best WYSIWYG Editor for You
https://xdsoft.net/jodit/
MIT License
1.71k stars 354 forks source link

Use web components inside jodit #681

Open chumager opened 3 years ago

chumager commented 3 years ago

Jodit Version: 3.6.18

Browser: Chrome OS: Linux Is React App: False

Expected behavior: To be able, at least, to insert web components by code, now I can add a web component tag but it ain't allows to put slots inside, when you switch to wysiwyg it takes the slots and put it outside. Actual behavior: If I set the content:

<my-component></my-component>

it's converted into

<p>
  <my-component></my-component>
</p>

If I set this content:

<my-component>test</my-component>

it's converted into

<p>
  <my-component>test</my-component>
</p>

but if I set:

<my-component><p slot="test">test</p></my-component>

the result is:

<p>
  <my-component></my-component>
</p>
<p>test</p>
ulfw commented 2 years ago

is this the same as my issue : https://github.com/xdan/jodit/issues/785 ?

I have overwritten the IS_BLOCK constant in the generated build, as long there is no solution