Skip to content

Commit 5ea58d2

Browse files
DOC-3132: A document watermark can now be specified for the exported file (#3597)
* DOC-3132: A document watermark can now be specified for the exported file * DOC-3132: Added the new option to the export to word documentation. * Update modules/ROOT/partials/configuration/exportword_watermark.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/partials/configuration/exportword_watermark.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/pages/7.7.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/pages/7.7.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]>
1 parent a3d3656 commit 5ea58d2

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

modules/ROOT/examples/live-demos/exportword/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ tinymce.init({
1616
left: "1in",
1717
right: "1in"
1818
}
19-
}
19+
},
20+
watermark: {
21+
source: 'http://moxiecode.cachefly.net/tinymce/v9/images/logo.png',
22+
washout: true
23+
},
2024
}
2125
});

modules/ROOT/pages/7.7.0-release-notes.adoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,20 @@ include::partial$misc/admon-releasenotes-for-stable.adoc[]
2424

2525
The following premium plugin updates were released alongside {productname} {release-version}.
2626

27+
=== Export to Word
28+
29+
The {productname} {release-version} release includes an accompanying release of the **Export to Word** premium plugin.
30+
31+
**Export to Word** includes the following fix.
32+
33+
==== A document watermark can now be specified for the exported file
34+
35+
Previously, the **Export to Word** premium plugin did not support watermarks, preventing integrators from adding them to exported Word documents.
36+
37+
With the release of {productname} {release-version} watermark functionality has been introduced, enabling watermarks to be included in exported documents.
38+
39+
For information on the **Export to Word** plugin, see: xref:exportword.adoc[Export to Word].
40+
2741
=== Advanced Typography
2842

2943
The {productname} {release-version} release includes an accompanying release of the **Advanced Typography** premium plugin.

modules/ROOT/pages/exportword.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ include::partial$configuration/exportword_converter_options.adoc[leveloffset=+1]
7777

7878
include::partial$configuration/exportword_converter_style.adoc[leveloffset=+1]
7979

80+
include::partial$configuration/exportword_watermark.adoc[leveloffset=+1]
81+
8082
== Commands
8183

8284
The {pluginname} plugin provides the following {productname} commands.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[[watermark]]
2+
== `watermark`
3+
4+
The `watermark` option provides integrators with a way to include semi-transparent image watermarks on each page of the exported document, which can be useful for branding, copyright protection, or decorative purposes.
5+
6+
*Type:* `+Object+`
7+
8+
=== Example : using `watermark`
9+
10+
[source,js]
11+
----
12+
tinymce.init({
13+
selector: "textarea",
14+
plugins: ['exportword'],
15+
toolbar: 'exportword',
16+
exportword_converter_options: {
17+
watermark: {
18+
source: 'http://moxiecode.cachefly.net/tinymce/v9/images/logo.png',
19+
washout: true,
20+
}
21+
}
22+
});
23+
----

0 commit comments

Comments
 (0)