I need to be able to insert from multiple clipboard formats, and insert into an MSHTML control.
If CF_HTML is in the clipboard, the MSHTML control’s in-built paste functionality does NOT interpret CSS within
<STYLE></STYLE> blocks properly and injects old-style
<FONT> tags instead, which is terrible (as they only use sizes 1 to 7 with SIZE=N). This changes the font size. I have discovered that if the style is within each element, like this:
<div style="font-family:Arial;font-size:23pt">hello world</div>
<FONT> tags are not inserted, and the paste works as expected.
I have a full licence of aspose total for .net, and have been trying to use both Aspose.Words and Aspose.Pdf to load up the HTML from the clipboard, and re-save it so that styling is placed inline in the elements (terrible, I know). But so far, the styling is all placed inside the
Are there any mechanisms to help me achieve putting style information inside attributes of elements instead?