N
N
NikSIk312020-01-09 23:05:13
TinyMCE
NikSIk31, 2020-01-09 23:05:13

Tinymce disappear standard design?

I add style_formats to tinyMCE and the standard formats disappear, I need new and old ones (namely, a div element ..)
added style_formats and the standard ones disappeared, added formats for the test and nothing. help me please

style_formats: [
        { title: 'Обёртка навигации', selector: 'p,div', classes: 'post-navigation' },
        { title: 'Титулка навигации', selector: 'p,div', classes: 'navigation-title' }
    ],
    formats: {
        alignleft: { selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'left' },
        aligncenter: { selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'center' },
        alignright: { selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'right' },
        alignfull: { selector: 'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img', classes: 'full' },
        bold: { inline: 'span', 'classes': 'bold' },
        italic: { inline: 'span', 'classes': 'italic' },
        underline: { inline: 'span', 'classes': 'underline', exact: true },
        strikethrough: { inline: 'del' },
        forecolor: { inline: 'span', classes: 'forecolor', styles: { color: '%value' } },
        hilitecolor: { inline: 'span', classes: 'hilitecolor', styles: { backgroundColor: '%value' } },
        custom_format: { block: 'h1', attributes: { title: "Header" }, styles: { color: 'red' } }
    },
    content_css: top.postContentPath

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question