In editor trumbowyg , replace div tag with p tag

694 Views Asked by At

trumbowyg rich text editor adds p tag on each line break, need to replace p tag with div tag.

setting property 'semantic': false on initialization does not seem to be working

<trumbowyg [initialContent]="resolutionTemplateContent" [options]="options1">
</trumbowyg>

options1 = { removeformatPasted: true,
    semantic : false }
1

There are 1 best solutions below

0
Paritosh Mishra On

You need to tamper with cleanpaste.js file. In that file all the html tag replacement is done in cleanIt function. There you can stop the replace

tag with tag