WriteOn / WriteOnApp

On a mission to create the world's finest writing experience.
https://writeon.io
Apache License 2.0
1 stars 0 forks source link

Front Matter -> Inputs #40

Closed thinq4yourself closed 9 years ago

thinq4yourself commented 9 years ago

Currently, WO uses Front Matter via our 'yamlFrontMatterParser.js' extension.

In the Wordpress, Tumblr, Blogger and Ghost providers, we use that parser to look for tags, published status, and publish date.

Then, in bodyEditor.html, add the fields wrapped in something like the following (using publish date as example):

<div class="form-group modal-publish-blogger modal-publish-tumblr modal-publish-wordpress">
  <label class="col-sm-4 control-label" for="input-publish-tags">Publish Date</label>
    <div class="col-sm-7">
      <div class="input-append date" id="dp3" data-date="06-01-2015" data-datepicker-format="dd-mm-yyyy">
        <input class="span2" size="16" type="text" value="06-01-2015">
        <span class="add-on"><i class="icon-th"></i></span>
    </div>
  </div>
</div>
thinq4yourself commented 9 years ago

I have added Visibility to publishAttributes for Tumblr, Wordpress, Ghost, & Blogger.

Now a setting int he publish window:

Visibility: Published or Draft

thinq4yourself commented 9 years ago

Fixed in commit 4d70370 v1.10.4