We have customized the toolbar, adding several custom buttons. Each uses a custom plugin.js file. We would like to duplicate the behavior of the standard "Table" toolbar button in regards to removing the <p> tags surrounding the HTML outputted from the button, but can't figure out how to properly do this using the API documentation. The <p> tags are the ones added automatically via the CKEDITOR.config.enterMode setting (note that we want the current setting of CKEDITOR.ENTER_P to stay the same - it's just when using our custom toolbar buttons to insert custom HTML markup that we want the tags removed).
Thanks in advance for any help.
Thanks in advance for any help.
Re: Strip automatic <p> tags when using custom toolbar but
Re: Strip automatic <p> tags when using custom toolbar but
You can see the comments indicating where we believe additional code should go to somehow replace the default <p><br></p> with our custom HTML output.
Does this help?