Groups
Sign in
Groups
Ajax.org Cloud9 Editor (Ace)
Conversations
About
Send feedback
Help
ace editor in a shadow dom
37 views
Skip to first unread message
matt richards
unread,
Jul 16, 2023, 9:46:07 PM
7/16/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ajax.org Cloud9 Editor (Ace)
i tried using ace editor on a node that was within a shadow dom
ace editor didnt respond well setting its height to 1000000px amongst other things
i produced a codepen :
ace editor in the shadow dom
matt richards
unread,
Jul 17, 2023, 6:01:53 AM
7/17/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ajax.org Cloud9 Editor (Ace)
well i found a solution, i clone the style elements for ace from the head section of the document into the shadow dom
i produced a codepen :
ace editor in the shadow dom - solution
Harutyun Amirjanyan
unread,
Jul 21, 2023, 4:02:43 AM
7/21/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ace-d...@googlegroups.com
There is also editor.renderer.attachToShadowRoot method which does the same.
But perhaps we should automatically detect shadow root to simplify the usage of the editor
matt richards
unread,
Jul 25, 2023, 4:21:06 AM
7/25/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ajax.org Cloud9 Editor (Ace)
hi,
yes
editor.renderer.attachToShadowRoot()
does work
i produced a codepen :
ace editor in the shadow dom - editor.renderer.attachToShadowRoot
Reply all
Reply to author
Forward
0 new messages