SE
Size: a a a
SE
SE
O
AZ
AZ
SI
AZ
const ul = document.querySelector('ul');воть)
function getTextFromUl(element) {
const [...el] = element.querySelectorAll('a') || [];
return el.map(a => a.href);
}
console.log(getTextFromUl(ul));
K
<div id="editorjs"></div>editor-init.js:
<script src="/tpl/js/editor-init.js" type="module"></script>
import './editor.js';Выдаёт ошибку
import Header from './editor.js';
// EditorJS
const editor = new EditorJS({
holderId : 'editorjs',
tools: {
header: {
class: Header,
inlineToolbar : true
},
},
});
Uncaught SyntaxError: import not found: default editor-init.js:2:7
SI
DM
K
K
K
<script src="https://cdn.jsdelivr.net/npm/@editorjs/header@latest"></script><!-- Header -->
Р
s
В
ДБ
IK
SI