You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/editor-api.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,11 +10,14 @@ This how-to describes how to open an existing document editor in Studio Pro from
10
10
11
11
## Prerequisites
12
12
13
-
This how-to uses the results of [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/getting-started/). Complete that how-to before starting this one. You should also be familiar with creating menus as described in [Create a Menu Using Web API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/menu-api/).
13
+
Before starting this how-to, make sure you have completed the following prerequisites:
14
+
15
+
* This how-to uses the results of [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/getting-started/). Complete that how-to before starting this one.
16
+
* Make sure you are familiar with creating menus as described in [Create a Menu Using Web API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/menu-api/).
14
17
15
18
## Opening a Document Editor
16
19
17
-
First, create a menu item. This is done inside the `loaded` method in the main entry point (`src/main/index.ts`). For more information, see[Create a Menu Using Web API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/menu-api/).
20
+
Create a menu item following the steps in[Create a Menu Using Web API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/menu-api/).
18
21
19
22
This menu action will look for the `Home_Page` document in `MyFirstModule` (however, you can use any module or document in your app). It will then open it with the editor API. For more information, see [Access a Mendix Model Using Web API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/model-api/).
If you would like to provide us with additional feedback, you can complete a small [survey](https://survey.alchemer.eu/s3/90801191/Extensibility-Feedback).
96
+
If you would like to provide additional feedback, you can complete a small [survey](https://survey.alchemer.eu/s3/90801191/Extensibility-Feedback).
Copy file name to clipboardExpand all lines: content/en/docs/apidocs-mxsdk/apidocs/studio-pro-11/extensibility-api/web/web-extensions-howtos/local-app-files-api.md
This how-to shows you how to interact with local application files from within an extension. It adds three new buttons to the tab and three new event handlers for saving, loading, and deleting a file called `HelloWorld.txt`.
9
+
This how-to describes how to interact with local application files from within an extension. In this example, you will:
10
+
11
+
* Add three new buttons to a tab
12
+
* Add three new event handlers for saving, loading, and deleting a file called `HelloWorld.txt`
10
13
11
14
## Prerequisites
12
15
13
-
This how-to uses the results of [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/getting-started/). Please complete that how-to before starting this one.
16
+
This how-to uses the results of [Get Started with the Web Extensibility API](/apidocs-mxsdk/apidocs/web-extensibility-api-11/getting-started/). Make sure to complete that how-to before starting this one.
14
17
15
-
## Adding Some Interactivity
18
+
## Adding Interactivity
16
19
17
-
First, you will add all the code. The changes will then be explained so that you can understand what the code does.
20
+
Implement the code described in the [Code Descriptions](#code-descriptions) section by following the steps below:
18
21
19
22
1. Open `src/ui/index.tsx`.
20
-
1. Replace the contents of the file with the following code:
23
+
2. Replace the contents of the file with the following code:
The App files API allows you to modify files within your application's folder. It will not:
131
-
132
-
* serve restricted files such as the `.mpr` file or the contents of some folders such as the `.git` folder.
133
-
* allow access to files outside of the app folder.
131
+
## Restrictions
134
132
135
-
## Conclusion
133
+
The app files API allows you to modify files within your application's folder. It will not:
136
134
137
-
You can now create and extension which save, load, and delete files within the app folder.
135
+
* Serve restricted files such as the `.mpr` file, or the contents of some folders, such as the `.git` folder
136
+
* Allow access to files outside of the app folder
138
137
139
138
## Extensibility Feedback
140
139
141
-
If you would like to provide us with some additional feedback you can complete a small [Survey](https://survey.alchemer.eu/s3/90801191/Extensibility-Feedback)
140
+
If you would like to provide additional feedback, you can complete a small [survey](https://survey.alchemer.eu/s3/90801191/Extensibility-Feedback).
0 commit comments