angular-ui / ui-tinymce

AngularUI wrapper for TinyMCE
MIT License
488 stars 371 forks source link

Stop adding custom attributes #297

Closed speculees closed 7 years ago

speculees commented 7 years ago

Hello, inside of tinymce editor I have the following HTML:

<p data-merged="yes">some lorem ipsum text </p> <p data-merged="yes">Lorem ipsum dolor sit amet,pri salutatus tincidunt reformidans id, ex nec magna epicuri delicata. Sea ne melius deseruisse, vix ut libris causae tractatos. <strong data-merged="yes">Vix </strong> facete virtute eu, ea iriure aliquip adversarium usu. Augue animal nostrud ei mei.</p>

I need to know which new elements are added. So when I press enter after "some lorem ipsum text" i expect to get the following html:

<p data-merged="yes">some lorem ipsum text </p> <p>&nbsp;</p> <p data-merged="yes">Lorem ipsum dolor sit amet,pri salutatus tincidunt reformidans id, ex nec magna epicuri delicata. Sea ne melius deseruisse, vix ut libris causae tractatos. <strong data-merged="yes">Vix </strong> facete virtute eu, ea iriure aliquip adversarium usu. Augue animal nostrud ei mei.</p>

However I get:

<p data-merged="yes">some lorem ipsum text </p> <p data-merged="yes" >&nbsp;</p> <p data-merged="yes">Lorem ipsum dolor sit amet,pri salutatus tincidunt reformidans id, ex nec magna epicuri delicata. Sea ne melius deseruisse, vix ut libris causae tractatos. <strong data-merged="yes">Vix </strong> facete virtute eu, ea iriure aliquip adversarium usu. Augue animal nostrud ei mei.</p>

I need to get the <p>&nbsp;</p> without custom data-merged attributes so I can know which elements are new.

deeg commented 7 years ago

Closing this as it is a support question. If you feel you have found a bug please open a new ticket with a plunker recreating the issue.

You may try Stack Overflow to get questions answered.