From 7e5abd3469ae43a73c6a3b26a2a55e4dc3345822 Mon Sep 17 00:00:00 2001 From: troy351 <914053923@qq.com> Date: Wed, 20 Jun 2018 13:56:14 +0800 Subject: [PATCH 1/2] Docs: fixed table layout --- docs/ConfigOptions.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/ConfigOptions.md b/docs/ConfigOptions.md index 265e8ed7..1e8823be 100644 --- a/docs/ConfigOptions.md +++ b/docs/ConfigOptions.md @@ -38,7 +38,8 @@ If an `allowInitialUserOverride` boolean is set to true, it will allow subsequen Note that those items marked as preferences are configuration items which can also be set via the UI (and specifically via Editor Options except where mentioned). Those items which appear in the UI but are not treated internally as preferences are marked with "Maybe" as their status may change. -| Property | Description | Default | Preference | |:---------|:------------|:--------|:-----------| +| Property | Description | Default | Preference | +|:---------|:------------|:--------|:-----------| | `lang` | Two-letter language code. The language must exist in the Editor Preferences language list | Default to "en" if `locale.js` detection does not detect another language | Yes | | `bkgd_url` | Background raster image URL. This image will fill the background of the document, useful for tracing purposes | (none) | Yes | | `img_save` | Defines whether included raster images should be saved as Data URIs when possible, or as URL references. Must be either 'embed' or 'ref'. Settable in the Document Properties dialog. | embed | Yes | From 971ffda89af2fe0aa55992a88087f3fce8f252be Mon Sep 17 00:00:00 2001 From: troy351 <914053923@qq.com> Date: Wed, 20 Jun 2018 13:57:09 +0800 Subject: [PATCH 2/2] Docs: fixed table layout --- docs/ExtensionDocs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/ExtensionDocs.md b/docs/ExtensionDocs.md index 758a4b62..ba1c0da5 100644 --- a/docs/ExtensionDocs.md +++ b/docs/ExtensionDocs.md @@ -105,7 +105,8 @@ These are added by the extension returning an object with the property "context_ Most plugins will want to run functions when certain events are triggered. This is a list of the current events that can be hooked onto. All events are optional. -| Event | Description | Parameters | Return value expected | |:------|:------------|:-----------|:----------------------| +| Event | Description | Parameters | Return value expected | +|:------|:------------|:-----------|:----------------------| | `mouseDown` | The main (left) mouse button is held down on the canvas area | Supplies an object with these properties: `evt` (the event object), `start_x` (x coordinate on canvas), `start_y` (y coordinate on canvas), `selectedElements` (an array of the selected Elements) | An optional object with started: true to indicate that creating/editing has started | | `mouseMove` | The mouse is moved on the canvas area | Same as for `mouseDown`, but with a selected property that refers to the first selected element | None | | `mouseUp` | The main (left) mouse button is released (anywhere) | Same as for `mouseDown` | An optional object with these properties: `element` (the element being affected), `keep` (boolean that indicates if the current element should be kept) `started` (boolean that indicates if editing should still be considered as "started") |