[JavaScript] Angular jodit javascript编辑器全布局

playground页面可编辑布局

jodit npm

从playground里获得所有的按钮布局

let rows = document.querySelectorAll(".style_row__idiE6")
    let tds = [];
    for (const row of rows) {
        let td =  row.querySelector("td:nth-child(2");
        tds.push( `'${td.innerText}'`);
    }
    let res = tds.join(",\n");
    console.log(res);

推荐个布局 | 是分隔符,\n是换到下一行

'source',
'bold',
'italic',
'underline',
'strikethrough',
'eraser',
'|',
'ul',
'ol',
'|',
'font',
'fontsize',
'paragraph',
'classSpan',
'lineHeight',
'\n',
'superscript',
'subscript',
'file',
'image',
'video',
'speechRecognize',
'spellcheck',
'|',
'cut',
'copy',
'paste',
'selectall',
'copyformat',
'hr',
'table',
'link',
'symbols',
'indent',
'outdent',
'left',
'brush',
'|',
'undo',
'redo',
'|',
'find',
'|',
'source',
'fullsize',
'preview',
'print',
'|',
'about'