Export to Word 1.9.0

The latest maintenance release of the Export to Word converter is here. It comes with SVG image support, a new base URL option, and improved conversion of the style
elements.
# SVG images
Scalable Vector Graphics (SVG) is an XML-based markup language used for describing two-dimensional vector graphics. The new version of Export to Word comes with support for SVG images. These can be embedded in HTML using one of the following methods:
- Base64 encoded images
<img src="data:image/svg+xml;base64,[SVG DATA]" alt="SVG Image">
- Image
src
attribute path
<img src="<https://example.com/logo.svg>" alt="SVG Image">
# Base URL
It is a common practice to use relative links on a webpage that only contains the path following your domain. Relative URLs make links or images editing more efficient as users don’t have to write the whole URL by themselves.
However, once HTML is sent to the Export to Word converter, there is no way to tell what was the base URL of the relative link and therefore such images need to be dropped during conversion. Previously, this caused missing links for relative URL images and anchors.
Fortunately, our newest Export to Word version comes with the base_url
option allowing you to enable the correct resolution of relative URLs in both images and links.
For the HTML that includes relative links, you will be able to provide the base_url
option pointing to the full URL of your site.
HTML using a link and an image with relative URLs:
<p>
<a href="/">Our company homepage</a>
</p>
<p>
<img src="/logo.svg" alt="Our logo">\
</p>
Base URL option that allows resolving relative links into an absolute form:
{
"base_url": "<https://ckeditor.com>"
}
This option will resolve the example URLs into the absolute form in the exported content:
/
becomeshttps://ckeditor.com
/logo.svg
becomeshttps://ckeditor.com/logo.svg
# The style
element now available everywhere
So far, the style
element could only be sent to the Export to Word converter if placed in the top level of the HTML structure. As an example, you could only place your style
element next to HTML content:
<style>
p {
color: red;
}
</style>
<div class="ck-content">
<p>I should be red</p>
</div>
The new Export to Word 1.9.0 fixes this problem. From now on, you will also be able to place style
elements nested in other elements:
<style>
p {
color: red;
}
</style>
<div class="ck-content">
<p>I should be red</p>
</div>
You can read more about this release in the On-Premises changelog.
You can read more about the HTML to Word converter and its practical applications in a dedicated blog post.
# Obtaining Export to Word
Export to Word is a commercial solution. Please check the pricing if you would like to purchase a license.
You can also sign up for the non-commitment CKEditor Premium Features 30-day free trial.
# Support and feedback
Refer to the extensive Import from Word documentation in case of any needs.