Skip to content
This repository has been archived by the owner on Nov 4, 2019. It is now read-only.

Commit

Permalink
See CHANGELOG.md v0.1.1 for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperbjerke committed Jul 24, 2015
1 parent 3da3fbd commit a653ba3
Show file tree
Hide file tree
Showing 15 changed files with 327 additions and 38 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "plugin-update-checker"]
path = plugin-update-checker
url = https://github.com/YahnisElsts/plugin-update-checker
12 changes: 12 additions & 0 deletions CHANGELOG.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<h1 id="changelog">CHANGELOG</h1>
<h2 id="0-1-1">0.1.1</h2>
<ul>
<li>Added updating functionality through github, curtesy of <a href="https://github.com/YahnisElsts/plugin-update-checker">YahnisElsts</a>, as well as automatic background updates</li>
<li>Added oEmbed support (automatic conversion of valid oEmbed)</li>
<li>Updated Medium Editor to 5.5.1</li>
<li>Save options to session, reducing loading/compiling</li>
</ul>
<h2 id="0-1">0.1</h2>
<ul>
<li>First public release</li>
</ul>
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CHANGELOG
=========
## 0.1.1
* Added updating functionality through github, curtesy of [YahnisElsts](https://github.com/YahnisElsts/plugin-update-checker), as well as automatic background updates
* Added oEmbed support (automatic conversion of valid oEmbed)
* Updated Medium Editor to 5.5.1
* Save options to session, reducing loading/compiling

## 0.1
* First public release
40 changes: 33 additions & 7 deletions README.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<h1 id="wa-fronted-wordpress-plugin">WA Fronted WordPress Plugin</h1>
<p><a href="https://gitter.im/jesperbjerke/wa-fronted?utm_source=badge&amp;utm_medium=badge&amp;utm_campaign=pr-badge&amp;utm_content=badge"><img src="https://badges.gitter.im/Join%20Chat.svg" alt="Join the chat at https://gitter.im/jesperbjerke/wa-fronted"></a>
Discuss this project at Gitter</p>
<p>Frontend editor for WordPress, an experiment with a goal to enhance usability and convenience of editing exisiting content.</p>
<blockquote>
<p>This plugin is intended strictly for developers, it will <strong>not</strong> work &quot;out of the box&quot;.</p>
<p>This plugin is intended strictly for plugin and theme developers, it will <strong>not</strong> work &quot;out of the box&quot;. Are you an end-user? <a href="https://lasso.is/">Look here!</a></p>
</blockquote>
<p><img src="https://github.com/jesperbjerke/wa-fronted/blob/master/screenshots/screenshot-1.jpg" alt="">
<img src="https://github.com/jesperbjerke/wa-fronted/blob/master/screenshots/screenshot-2.jpg" alt="">
<img src="https://github.com/jesperbjerke/wa-fronted/blob/master/screenshots/screenshot-3.jpg" alt=""></p>
<p>To enable an editable area, simply add a filter function to &#39;wa_fronted_options&#39; that passes and returns a multidimensional array. Note that both themes and plugins can call this filter before or after eachother and build upon or replace options.</p>
<p>The first level of the array consists of the key &quot;defaults&quot; (optional) and &quot;post_types&quot;. In &quot;defaults&quot;, specify whatever you want to be set as default when you have not set anything else in that specific area. In &quot;post_types&quot; you create an array for each post type you want to enable frontend editing for (you can also use &#39;front_page&#39; if you just want to target your static front page). Inside, you set &quot;editable_areas&quot; with an array with options for each editable area on this post type.</p>
<p>The following example will enable the regular post content on front page to be editable from frontend if logged in user has role &quot;administrator&quot;, with a toolbar consisting of only bold and italic buttons, but on posts we allow a full toolbar and leaving permission to the default (current_user_can(&#39;edit_posts&#39;)).</p>
Expand Down Expand Up @@ -87,6 +92,9 @@ <h2 id="supported-acf-field-types">Supported ACF field types</h2>
<li>File</li>
</ul>
<h2 id="pending-features">Pending features</h2>
<blockquote>
<p>These are features that are planned to be implemented in the near future (in no particular order)</p>
</blockquote>
<ul>
<li>[ ] Ability to edit featured image</li>
<li>[ ] Show unsaved changes warning if leaving page</li>
Expand All @@ -96,19 +104,37 @@ <h2 id="pending-features">Pending features</h2>
<li>[ ] Autosave</li>
<li>[ ] WooCommerce support (other than standard WP-fields)</li>
<li>[ ] Image upload by dropping an image into the editable area</li>
<li>[ ] Extend plugability further and support for extensions (enable to hook onto and modify js editor)</li>
<li>[ ] Drag image to move it within the editable area</li>
<li>[ ] Extend pluggability further and support for extensions (enable to hook onto and modify js editor)</li>
<li>[ ] Multiple &quot;output_to&quot; selectors and attrs</li>
<li>[ ] Choice-based fields like dropdown-select (click on content to show dropdown and select option to insert)</li>
<li>[ ] More ACF fields support</li>
<li>[ ] Smarter outputing of value (like if it&#39;s an image field and has no output options, determine by itself)</li>
<li>[ ] Smarter outputting of value (like if it&#39;s an image field and has no output options, determine by itself)</li>
<li>[ ] Enable editing from archives/blog home</li>
<li>[ ] Post revisions</li>
<li>[ ] Edit taxonomies (and native tags and categories)</li>
<li>[ ] Make it possible to create new posts from frontend</li>
<li>[ ] How-to guide for integration and extensions</li>
<li>[x] oEmbed support in wysiwyg</li>
<li>[x] Updates</li>
<li>[x] Automatic updates</li>
</ul>
<h2 id="proposed-features">Proposed features</h2>
<blockquote>
<p>These features requires further discussion, not yet set to be implemented</p>
</blockquote>
<ul>
<li>[ ] Spellchecking and wordsuggestion, autocorrection</li>
<li>[ ] Ability to update widget contents</li>
<li>[ ] Column-maker</li>
</ul>
<h2 id="collaboration-notes">Collaboration notes</h2>
<ul>
<li>I&#39;m using sass for styling and PrePros for compiling (there&#39;s a free version if you wanna check it out)</li>
<li>JS files are minified and concatenated with PrePros, so without it you&#39;ll have to load the other js files individually (see prepros-prepend comments in the beginning of scripts.js)</li>
<li>I&#39;m using bower for keeping medium-editor up to date, right now there are no other dependancies other than jQuery but that comes with WP</li>
<li>Features and third party add ons should be free and open source</li>
<li>I&#39;m using sass for styling and <a href="https://prepros.io/">PrePros</a> for compiling (there&#39;s a free version if you wanna check it out)</li>
<li>JS files are minified and concatenated with <a href="https://prepros.io/">PrePros</a>, so without it you&#39;ll have to load the other js files individually (see prepros-prepend comments in the beginning of scripts.js)</li>
<li>I&#39;m using <a href="http://bower.io/">Bower</a> for keeping medium-editor up to date, right now there are no other dependancies other than jQuery but that comes with WP</li>
<li>Core features should be free and open source</li>
<li>Comment your code</li>
</ul>
<h2 id="license">License</h2>
<p>See the <a href="LICENSE.md">LICENSE</a> file for license rights (GPLv2)</p>
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,16 @@ array(
* [ ] Post revisions
* [ ] Edit taxonomies (and native tags and categories)
* [ ] Make it possible to create new posts from frontend
* [ ] oEmbed support in wysiwyg
* [ ] Updates
* [ ] Automatic updates
* [ ] How-to guide for integration and extensions
* [x] oEmbed support in wysiwyg
* [x] Updates
* [x] Automatic updates

##Proposed features
> These features requires further discussion, not yet set to be implemented
* [ ] Spellchecking and wordsuggestion, autocorrection
* [ ] Ability to update widget contents
* [ ] Column-maker

##Collaboration notes
Expand Down
11 changes: 5 additions & 6 deletions bower_components/medium-editor/.bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,14 @@
"README.md",
"CHANGES.md"
],
"version": "5.5.0",
"_release": "5.5.0",
"version": "5.5.1",
"_release": "5.5.1",
"_resolution": {
"type": "version",
"tag": "5.5.0",
"commit": "7153d89a1229d56d576120532f6dc00d10f05e4c"
"tag": "5.5.1",
"commit": "63d7a06663de8a539cfaf8dd740f9fbac12bf861"
},
"_source": "git://github.com/daviferreira/medium-editor.git",
"_target": "~5.5.0",
"_originalSource": "medium-editor",
"_direct": true
"_originalSource": "medium-editor"
}
9 changes: 6 additions & 3 deletions bower_components/medium-editor/dist/css/medium-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,22 +165,25 @@
.medium-editor-toolbar-form input,
.medium-editor-toolbar-form a {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.medium-editor-toolbar-form .medium-editor-toolbar-form-row {
line-height: 14px;
margin-left: 5px;
padding-bottom: 5px; }
.medium-editor-toolbar-form .medium-editor-toolbar-input,
.medium-editor-toolbar-form label {
border: none;
box-sizing: border-box;
font-size: 14px;
margin: 0;
padding: 6px;
width: 316px; }
width: 316px;
display: inline-block; }
.medium-editor-toolbar-form .medium-editor-toolbar-input:focus,
.medium-editor-toolbar-form label:focus {
appearance: none;
border: none;
box-shadow: none;
outline: 0; }
.medium-editor-toolbar-form label {
display: block; }
.medium-editor-toolbar-form a {
display: inline-block;
font-size: 24px;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions bower_components/medium-editor/dist/js/medium-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -3120,21 +3120,25 @@ var AnchorForm;
// fixme: ideally, this targetCheckboxText would be a formLabel too,
// figure out how to deprecate? also consider `fa-` icon default implcations.
template.push(
'<div class="medium-editor-toolbar-form-row">',
'<input type="checkbox" class="medium-editor-toolbar-anchor-target">',
'<label>',
this.targetCheckboxText,
'</label>'
'</label>',
'</div>'
);
}

if (this.customClassOption) {
// fixme: expose this `Button` text as a formLabel property, too
// and provide similar access to a `fa-` icon default.
template.push(
'<div class="medium-editor-toolbar-form-row">',
'<input type="checkbox" class="medium-editor-toolbar-anchor-button">',
'<label>',
this.customClassOptionText,
'</label>'
'</label>',
'</div>'
);
}

Expand Down Expand Up @@ -3454,7 +3458,7 @@ var AnchorPreview;

// Detect empty href attributes
// The browser will make href="" or href="#top"
// into absolute urls when accessed as event.targed.href, so check the html
// into absolute urls when accessed as event.target.href, so check the html
if (!/href=["']\S+["']/.test(target.outerHTML) || /href=["']#\S+["']/.test(target.outerHTML)) {
return true;
}
Expand Down Expand Up @@ -4866,7 +4870,7 @@ var Toolbar;
offset = offset + 1;
}
selectionRange = Selection.select(this.document, adjacentNode, offset,
selectionRange.endContainer, selectionRange.offset);
selectionRange.endContainer, selectionRange.endOffset);
}
}
},
Expand Down Expand Up @@ -6220,7 +6224,7 @@ MediumEditor.parseVersionString = function (release) {

MediumEditor.version = MediumEditor.parseVersionString.call(this, ({
// grunt-bump looks for this:
'version': '5.5.0'
'version': '5.5.1'
}).version);

return MediumEditor;
Expand Down
4 changes: 2 additions & 2 deletions bower_components/medium-editor/dist/js/medium-editor.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit a653ba3

Please sign in to comment.