Skip to content

Commit 1e66d47

Browse files
authored
Improve editor-file.md
1 parent caeca6b commit 1e66d47

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/editor-components/editor-file.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Editor File API
22

3-
The Editor File API provides functionality to create, manage, interact with files in the Acode editor. It handles file operations, state management, and editor session control.
3+
The Editor File API provides functionality to create, manage, interact with files/tabs in the Acode editor. It handles file operations, state management, editor session control, custom editor tab, etc.
44

55
:::tip
66
This API is defined in the [Acode source code (src/lib/editorFile.js)](https://github.com/Acode-Foundation/Acode/blob/52bf3a59c4aebe422d8cfdecf5c85191ed6f6004/src/lib/editorFile.js).
@@ -297,6 +297,10 @@ const file2 = new EditorFile('custom.html', {
297297
file1.addStyle('/styles/additional.css');
298298
```
299299

300+
::: warning
301+
Custom Editor Tabs are isolated from main dom using shadow dom, so don't select tab elements using main dom(`document`).
302+
:::
303+
300304
### Saving File Changes
301305

302306
```js

0 commit comments

Comments
 (0)