From acafb9192a6402a3f3d60d5e6af11cb4576fc96c Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Wed, 4 Jan 2017 15:26:51 -0800 Subject: add tags, slug and status field to quill editor --- views/editor.php | 29 ++++++++++++++++++++++------- views/layout.php | 2 +- views/new-post.php | 2 +- views/settings.php | 37 ++++++++++++++++++++++++++++++++++++- 4 files changed, 60 insertions(+), 10 deletions(-) (limited to 'views') diff --git a/views/editor.php b/views/editor.php index 78b1858..f1d2250 100644 --- a/views/editor.php +++ b/views/editor.php @@ -67,14 +67,29 @@ diff --git a/views/new-post.php b/views/new-post.php index 3418272..6ce8095 100644 --- a/views/new-post.php +++ b/views/new-post.php @@ -419,7 +419,7 @@ $(function(){ } } if(v=$("#note_slug").val()) { - formData.append("slug", v); + formData.append("user->micropub_slug_field ?>", v); } // Add either the photo as a file, or the photo URL depending on whether the user has a media endpoint diff --git a/views/settings.php b/views/settings.php index 5acc7dd..2662eb0 100644 --- a/views/settings.php +++ b/views/settings.php @@ -18,7 +18,7 @@ media endpoint - user->media_endpoint ? ''.$this->user->media_endpoint.'' : 'no media endpoint' ?> + user->micropub_media_endpoint ? ''.$this->user->micropub_media_endpoint.'' : 'no media endpoint' ?> access token @@ -31,6 +31,28 @@

Connecting a Twitter account will automatically "favorite" and "retweet" tweets on Twitter when you favorite and retweet a Twitter URL in Quill.

+ +

Backwards Compatibility

+ +

You can customize some of the properties that are sent in the Micropub request to work with your specific endpoint.

+ + + + + + + + + + + + +
Slug +
+
+
Choose the name of the field that the slug will be sent in. This should be set to mp-slug unless your endpoint is using a custom property or the deprecated slug property.
Send HTML Contentuser->micropub_optin_html_content ? 'checked="checked"' : '' ?>>When checked, content from Quill's HTML editor will be sent in a property called content[html] rather than just content. See the Micropub specification for more details.
+ + -- cgit v1.2.3