Skip to content

Commit 997cfbf

Browse files
committed
text-editor: edit more types of files
1 parent afa1361 commit 997cfbf

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

text-editor/src/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,15 @@ const appInfo = {
4444
]
4545
}
4646

47+
for (const ext of ['js', 'json', 'xml', 'py', 'php', 'yaml', '']) {
48+
appInfo.extensions.push({
49+
extension: ext,
50+
routeName: 'text-editor-editor',
51+
canBeDefault: true
52+
// newTab: true,
53+
})
54+
}
55+
4756
const translations = t
4857
export default {
4958
appInfo,

0 commit comments

Comments
 (0)