0

I need to add the h1 tag for selected text using tinyMCE. i use the following code

tinymce.init({
            selector:"td",
            inline: true,
            menubar:false,
            statusbar: false,
            branding: false,
            browser_spellcheck: true,
            toolbar: 'undo redo bold  italic | formatselect fontselect fontsizeselect | forecolor backcolor | alignleft aligncenter alignright | superscript subscript | bullist numlist | link | code',
            plugins: ['code','textcolor','link']
        });

1 Answers1

0

You need to write your own TinyMCE plugin to achieve this. Take a look at TinyMCE's documentation on the subject (https://www.tinymce.com/docs/advanced/creating-a-plugin/) and this question (Get the Highlighted/Selected text) about getting selected text