Juicy / juicy-ace-editor

Custom Element with the Ace code editor
http://juicy.github.io/juicy-ace-editor/
MIT License
93 stars 34 forks source link

Support distributed content (gold standard) #40

Open tomalec opened 6 years ago

tomalec commented 6 years ago

Currently, the element does ignore the distributed content

Steps to reproduce

  <shadow-host>
    <template is="shadow-root" mode="open">
      Does it work get distributed content?
      <juicy-ace-editor><slot></slot></juicy-ace-editor>
    </template>
    does
  </shadow-host>

Live Demo

https://jsbin.com/susiran/1/edit?html,output

Expected result

Distributed content should be rendered as the value of the editor.

Actual result

distributed content is ignored.

Browsers affected

Screenshot