Hi,
We are using Gembox in combination with tinyMCE on our website. We create/edit a html with tinyMCE and then Gembox converts this to a Word file. This Word file gets saved for later use and editing. Now, when I want to edit that word file again in tinyMCE I have to convert the word file back to html.
During these conversions, some weird artifacts happen. For example a simple bullet point list created in tinyMCE looks like this:
In tinyMCE, it looks nice but further editing is troublesome. E.g. continuing the bullet point list is not possible since tinyMCE doesn’t see this html as list.
Is there a good way to approach something like this?
The thing is our software needs to save this in word format. The same text should be able to be edited in tinyMCE and also in Word directly and is should look and behave the same. In our App it’s also possible to create the word file first and then edit it further in our web. Any ideas are appreciated.
We have added support for exporting <ul> and <ol> elements when using the HtmlSaveOptions.UseSemanticElements.
Please try again with this NuGet package: Install-Package GemBox.Document -Version 35.0.1896-hotfix
Note that this is a hidden pre-released version, to install it you’ll need to run the above command on the NuGet Package Manager Console (Tools → NuGet Package Manager → Package Manager Console).
It adds some value to “margin-left:54pt;padding-left: 12pt;”. Maybe there is a setting in the DocumentModel class for this?
It seems the values get added additionally, since when just converting the word to html and back to word (without modifying anything); the bullet list in word moves to the right.
Thank you again for the update. Yes, this issue is solved and it works nicely.
I noticed some issues with nested list, resp. list with indent. A html nested list get’s converted to a word list with indent. But this list in word has some weird properties in the list level definition and perhaps paragraph.
Thanks for the update. That seems to solve the issue.
TinyMCE does not properly continue the list in certain situations, but that’s due to how tinyMCE adds a new list element to the Gembox’s converted list. I guess we do a workaround for that.
E.g. Having a bullet list with 3 different indents: