-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…portword` for Cloud. (#3535) * DOC-2591: Improve documentation for importword, exportpdf and exportword to support Cloud. * Update modules/ROOT/pages/exportpdf.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/exportword.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/importword.adoc Co-authored-by: Farzad Hayat <[email protected]> * DOC-2591: Update exportpdf_converter_options value. * DOC-2591: File name changes for importword. * DOC-2591: remove second forward slash from pricing admin urls. --------- Co-authored-by: Farzad Hayat <[email protected]>
- Loading branch information
1 parent
debe7d9
commit eb7f593
Showing
20 changed files
with
449 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
modules/ROOT/partials/configuration/exportpdf_converter_options.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
[[exportpdf-converter-options]] | ||
== `exportpdf_converter_options` | ||
|
||
This option allows the editor to download a PDF document containing its content, along with the specified options defined in the `exportpdf_converter_options`. | ||
|
||
**Type:** `+Object+` | ||
|
||
[NOTE] | ||
As of {productname} 7.5.0, the `exportpdf_converter_options` setting now comes with a default value set to the following: | ||
|
||
.**Default value:** | ||
[source,js] | ||
---- | ||
{ | ||
format: 'Letter', | ||
margin_top: '1in', | ||
margin_right: '1in', | ||
margin_bottom: '1in', | ||
margin_left: '1in' | ||
} | ||
---- | ||
|
||
=== Example: using `exportpdf_converter_options` | ||
|
||
[source,js] | ||
---- | ||
tinymce.init({ | ||
selector: 'textarea', | ||
plugins: 'exportpdf', | ||
toolbar: 'exportpdf', | ||
exportpdf_service_url: '<service_url>', // required if using On-premises service | ||
exportpdf_converter_options: { | ||
header_html: '<p>HEADER</p>', // example | ||
header_and_footer_css: 'p { color: blue }', // example | ||
}, | ||
}) | ||
---- | ||
|
||
[NOTE] | ||
The `exportpdf_service_url` option must be configured for the {pluginname} plugin to work. | ||
|
||
> For comprehensive details regarding the `exportpdf_converter_options`, please refer to the https://exportpdf.converter.tiny.cloud/docs[API documentation^] available for the {pluginname} Premium plugin. |
29 changes: 29 additions & 0 deletions
29
modules/ROOT/partials/configuration/exportpdf_converter_style.adoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
[[exportpdf-converter-style]] | ||
== `exportpdf_converter_style` | ||
|
||
The `exportpdf_converter_style` option allow for customization of the styles applied to the exported PDF document, providing flexibility in controlling its appearance. | ||
|
||
*Type:* `+String+` | ||
|
||
*Default value:* `''` | ||
|
||
=== Example: using `exportpdf_converter_style` | ||
|
||
[source,js] | ||
---- | ||
tinymce.init({ | ||
selector: 'textarea.tinymce', | ||
plugins: 'exportpdf', | ||
toolbar: 'exportpdf', | ||
exportpdf_service_url: '<service_URL>', // required if using On-premises service | ||
exportpdf_converter_options: { // required to support "exportpdf_converter_style" | ||
header: [ | ||
{ | ||
html: '<h1>First page header.</h1>', //example | ||
css: 'h1 { font-size: 30px; }', //example | ||
} | ||
], | ||
}, | ||
exportpdf_converter_style: 'p { color: cyan !important }' // requires both "exportpdf_converter_style" and "exportpdf_service_url" to be set. | ||
}); | ||
---- |
Oops, something went wrong.