ckeditor / ckeditor5

Powerful rich text editor framework with a modular architecture, modern integrations, and features like collaborative editing.
https://ckeditor.com/ckeditor-5
Other
9.49k stars 3.7k forks source link

Table border styles missing in exported Word doc #10651

Open gustiando opened 3 years ago

gustiando commented 3 years ago

The ultimate goal is to provide a table without borders.

Our users love the formatting and row/column organization feature tables provide, but usually prefer it with a cleaner look. Which is usually achieved by hiding the outer and inner borders of the table.

This seems possible within CKEditor itself, by basically setting a width and white border color. Though the exported Word doesn't seem to notice those styling changes.

Image 2021-10-05 at 12 49 05 PM

If there's a way to accomplish such please let me know, otherwise it looks like a bug.

If this is an actual bug or unsupported feature could someone shed some light on when this is expected to come out, provide some workarounds or at last pointers as to how to go about implementing it myself?

Thanks!

📝 Provide detailed reproduction steps (if any)

  1. Go to Export to Word's demo page
  2. Anywhere in the doc, add a 2x2 table for example.
  3. Select the table so you can see its balloon toolbar, then click on "Table properties"
  4. On the little pop up settings, pick any border style of choice. (Let's say you'd like no borders. So presumably one way would have been to set Style=Solid, Color=White and Width=2px 🤷‍♂️ )
  5. Hit "Save"
  6. Hit the "Export to Word" button on the toolbar
  7. Opening the downloaded Word doc you should notice that your recent changes are missing

Image 2021-10-05 at 12 43 07 PM

✔️ Expected result

Border styling to be present in the Word doc.

❌ Actual result

Border styling is missing from the Word doc.

📃 Other details


If you'd like to see this fixed sooner, add a 👍 reaction to this post.

rolexta commented 2 years ago

any updates?

gustiando commented 2 years ago

@rolexta not on my end. I'm not longer working on this project, but our workaround was to open and tweak the Doc xml coming from CKEditor before handing it to the client. Sort of hacky, but we were able to add those borders. We spoke with their support team and apparently they have a new doc converter planned that might address this issue, but no strong time estimate other than saying it might come between this or next year. Unless something change, your best bet might be to go with what my team did back then. @cfe86 feel free to chime in.