getEditableHost method
Get editable host.
Gets the nearest editable parent of the HTML element contained in the element parameter. Returns null if none found.
Implementation
AlohaEditable? getEditableHost(HtmlElement element) {
if (!_ready) throw AlohaException(AlohaException.notReady);
final jQueryId = '#${element.id}';
final jQueryElement = js.context.callMethod(r'$', [jQueryId]);
final proxy = _alohaContext.callMethod('getEditableHost', [jQueryElement]);
if (proxy == null) return null;
final editable = AlohaEditable(proxy);
return editable;
}