Tweak registering besService and unify textarea and div contenteditable classes
This commit is contained in:
@@ -994,11 +994,9 @@ class BesPopupEl extends HTMLElement {
|
||||
}
|
||||
|
||||
window.onload = () => {
|
||||
document
|
||||
.querySelectorAll('.bes-service')
|
||||
.forEach(hostElement => BesService.register(hostElement))
|
||||
document.querySelectorAll('.bes-service-textarea').forEach(hostElement => {
|
||||
BesTAService.register(hostElement)
|
||||
document.querySelectorAll('.bes-service').forEach(hostElement => {
|
||||
if (hostElement.tagName === 'TEXTAREA') BesTAService.register(hostElement)
|
||||
else BesService.register(hostElement)
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user