Your comments

Hello,

when you use the "Open…" command to open a file from Dropbox, Textastic only has access to that single file. It cannot access other files in Dropbox. Even if you open both files, Textastic does not know that they are from the same location.

Please use the built-in Dropbox client instead to download your project to "Local Files" or "iCloud". Then the preview will work as expected.

This is also explained in the document you linked to:

If you plan to use the built-in web preview to preview a HTML file with external JavaScript, CSS, or image files, it is recommended to use one of the built-in clients for (S)FTPWebDAVDropbox, or Google Drive to download your website files first and edit and preview them locally. If you open a single file with the document picker, linked files cannot be accessed by the web preview due to the iOS security sandbox that limits an app’s access to files in other apps.

Have a look at the following topics in the manual to see how you can download files from Dropbox:

https://www.textasticapp.com/v7/manual/remote_servers/remote_file_transfer_screen.html

https://www.textasticapp.com/v7/manual/remote_servers/dropbox.html

https://www.textasticapp.com/v7/manual/remote_servers/uploading_downloading.html

https://www.textasticapp.com/v7/manual/remote_servers/quick_upload_download.html

Sorry that I didn't know right away what was going on.

Hello,

you can add a Working Copy folder as an external folder to Textastic. Then you can use the "+" button in Textastic to add a new file to the folder without having to use the Open… dialog or Working Copy.

Please have a look at the manual to see how you can do this: https://www.textasticapp.com/v7/manual/integration_other_apps/git_client_working_copy.html

Textastic uses WKWebView which is the same WebKit engine that is used by Safari.

WebKit does support ES6 modules in the latest iOS versions. Also, Textastic does run a local web server. 


If you send me sample project that doesn't work, I can have a look at it.

There is most likely a problem somewhere in your HTML or JavaScript file.

Can you please send me the project by email to support@textasticapp.com so I can have a look at it?

You can also try to run it through the HTML validator at https://validator.w3.org

Textastic stores local files in a so-called "application group container" - this was necessary so that Textastic 7 could seamlessly access files stored in Textastic 6. It's also necessary if I ever want to add a share extension that can access local files.

Unfortunately, the Files app currently does not support "On my iPhone" files to be in an application group container. I have reported this as an enhancement request to Apple, but so far this hasn't been implemented by them.

After opening a .mjs file, you can select JacaScript as the syntax definition in the file properties popover:

https://www.textasticapp.com/v7/manual/viewing_editing_files/file_properties.html

Yes, I consider checking whether the file was changed on the server by looking at the file size and/or modification date and warning the user before upload.

I'm not sure if this is really necessary.

Hmm, after I re-read your post I think I do understand now.

Currently, you can only use x-callback-url calls to open files stored in "Local Files" or "iCloud" in Textastic - but not files stored in external file providers. See https://www.textasticapp.com/v7/manual/integration_other_apps/x-callback-url.html#open

I'm not sure if I understand. After you use the "Open…" command in Textastic to open a file from iCloud Drive or Dropbox, you can use the list of recent files to open the same file again. The list of recent files is basically a list of deep links to previously opened files: https://www.textasticapp.com/v7/manual/managing_files/recent_files.html

You can also directly open Textastic from the Files app: 


  • tap and hold the file you want to open in Textastic
  • tap "Share"
  • choose "Copy to Textastic" or "Open in Textastic" (if you see "Copy to Textastic": this is a bug in iOS, it changes to "Open in Textastic" after the first use)

Next time you tap on a file with the same file extension, it will be automatically opened in Textastic.

Oh, I see. Textastic stores local files in a so-called "application group container" - this was necessary so that Textastic 7 could seamlessly access files stored in Textastic 6. It's also necessary if I ever want to add a share extension that can access local files.

Unfortunately, the Files app currently does not support "On my iPhone" files to be in an application group container. I have reported this as an enhancement request to Apple, but so far this hasn't been implemented by them.