I clear the h1 effect using this:
document.execCommand('formatBlock', false, 'p');
You changed its format to h1, so we can return it to the normal paragraph format in the same way.
If you put each paragraph in a <div>, you can also use this:
document.execCommand('formatBlock', false, 'div');
set the format in the same way as other blocks.
source share