Remove jQuery from the Unicode escape button (#29369)
- Switched to plain JavaScript - Tested the Unicode escape button functionality and it works as before # Demo using JavaScript without jQuery  --------- Signed-off-by: Yarden Shoham <[email protected]> Co-authored-by: wxiaoguang <[email protected]>
This commit is contained in:
co-authored by
wxiaoguang
parent
4197e28100
commit
c86d033a3e
@@ -51,6 +51,10 @@ export function isElemHidden(el) {
|
||||
return res[0];
|
||||
}
|
||||
|
||||
export function queryElemSiblings(el, selector) {
|
||||
return Array.from(el.parentNode.children).filter((child) => child !== el && child.matches(selector));
|
||||
}
|
||||
|
||||
export function onDomReady(cb) {
|
||||
if (document.readyState === 'loading') {
|
||||
document.addEventListener('DOMContentLoaded', cb);
|
||||
|
||||
Reference in New Issue
Block a user