abcjs icon indicating copy to clipboard operation
abcjs copied to clipboard

[Feature Request] Add HTMLElement support for editArea parameter.

Open woody-li opened this issue 1 year ago • 2 comments

In interactive Editor Constructor, the editArea parameter only supports ID string and EditArea instance.

Is it possibile to add HTMLElement type support, I saw that other id-like parameters both supports it.

In my case, the element is descendant of a shadowDom, so it cann't be find by getElementById.

woody-li avatar Mar 18 '24 02:03 woody-li

So you want to do something like:

const editArea = new abcjs.EditArea(element)
const editor = new abcjs.Editor(editArea)

That wouldn't be hard to do. I'll have it in the next version.

paulrosen avatar Apr 08 '24 22:04 paulrosen

Yeah, thanks for your work.

woody-li avatar Apr 09 '24 08:04 woody-li

This will be fixed in version 6.4.0

paulrosen avatar Jun 10 '24 17:06 paulrosen

It works fine, thanks

woody-li avatar Jun 18 '24 02:06 woody-li