- Update now reads the live editor text from NSTextStorage instead of relying on any stale editor state, sends it as markdown plus compatibility aliases, and refuses to overwrite the editor with stale Markdown if the server response doesn’t echo the new content.
I also updated [api.php](/Users/tyemeclifford/Documents/GH/blog/api.php) so content.save accepts markdown, content, or body for post/page content.
This commit is contained in:
@@ -61,10 +61,9 @@ TCMS_API_ENABLED=true
|
||||
TCMS_API_USERNAME=admin
|
||||
TCMS_API_PASSWORD=change-this-password
|
||||
TCMS_API_PASSWORD_HASH=
|
||||
TCMS_API_TOKEN=change-this-token
|
||||
```
|
||||
|
||||
The Mac client can authenticate with the `.env` username/password. Scripts can also send `TCMS_API_TOKEN` as a Bearer token or `X-TCMS-Token`. Use `TCMS_API_PASSWORD_HASH` with `password_hash()` output instead of `TCMS_API_PASSWORD` for production.
|
||||
The Mac client authenticates with the `.env` username and password. Use `TCMS_API_PASSWORD_HASH` with `password_hash()` output instead of `TCMS_API_PASSWORD` for production.
|
||||
|
||||
## Comments
|
||||
|
||||
|
||||
Reference in New Issue
Block a user