Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I want to integration ACE Editor( https://ace.c9.io/ ) in PowerBI,but got error:
got warning in HTML:
no warning in powerbi:
Hi @luojiandan_bi,
Because custom visuals are executed in sandboxed iframes, they have no origin and loading additional scripts via workers is not supported. I have spent a lot of time trying to integrate editors into visuals and the good ones all need to use workers - it's not possible to package the workers in a way that allows them to be loaded at execution time. Ace is not my first choice, and I hope to be able to use something else in time, but I have managed to integrate it and have it working for the JSON mode at least for now.
With Ace you have two options that can realistically work:
As everyone's code is a little different it's hard to prescribe exactly what you need but hopefully this may give you some ideas. With Deneb I use jsoneditor, which includes Ace, but I'm really only taking advantage of its schema validation functionality, so I manually specify my own instance of Ace editor. As such I handle my dependent imports here, which may also help you figure it out for your case.
Good luck!
Daniel
Proud to be a Super User!
My course: Introduction to Developing Power BI Visuals
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.