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 v1.3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperbjerke committed Nov 6, 2015
1 parent 5b4bef3 commit a6279a8
Show file tree
Hide file tree
Showing 11 changed files with 140 additions and 100 deletions.
13 changes: 12 additions & 1 deletion CHANGELOG.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
<h1 id="changelog">CHANGELOG</h1>
<h2 id="1-3-6">1.3.6</h2>
<ul>
<li>Added option <code>init_on_load</code> to set Fronted loading behavior</li>
<li>Added filter <code>save_extra_data</code></li>
<li>Added filter <code>autosave_extra_data</code></li>
<li>Added more specificity to 3rd party libraries to avoid css conflicts</li>
<li>Changed so that 3rd party javascript libraries will be enqueued separately</li>
<li>Fixed p-tags being inserted in auto configured post_title</li>
<li>Fixed post revisions not honoring the constant <code>WP_POST_REVISIONS</code></li>
</ul>
<h2 id="1-3-5">1.3.5</h2>
<ul>
<li>Added automatic config of <code>post_content</code>, <code>post_title</code> and <code>post_thumbnail</code> if no settings is set <strong>requires editable contents to be in a container with class <code>hentry</code></strong>, can be turned off by setting <code>auto_configure</code> to <code>false</code></li>
<li>Added automatic config of <code>post_content</code>, <code>post_title</code> and <code>post_thumbnail</code> if no settings are set <strong>requires editable contents to be in a wrapping container with class <code>hentry</code> like <code>&lt;article class=&quot;hentry&quot;&gt;&lt;h1 class=&quot;entry-title&quot;&gt;&lt;/h1&gt;&lt;div class=&quot;entry-content&quot;&gt;&lt;/entry-content&gt;&lt;/article&gt;</code></strong>, can be turned off by setting <code>auto_configure</code> to <code>false</code></li>
<li>Added option <code>auto_configure</code></li>
<li>Added check/set post locks</li>
<li>Removed <a href="https://github.com/YahnisElsts/plugin-update-checker">plugin-update-checker</a> in favor for the official plugin repo</li>
</ul>
<h2 id="1-3">1.3</h2>
<ul>
Expand Down
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
CHANGELOG
=========
## 1.3.6
* Added option `init_on_load` to set Fronted loading behavior
* Added filter `save_extra_data`
* Added filter `autosave_extra_data`
* Added more specificity to 3rd party libraries to avoid css conflicts
* Changed so that 3rd party javascript libraries will be enqueued separately
* Fixed p-tags being inserted in auto configured post_title
* Fixed post revisions not honoring the constant `WP_POST_REVISIONS`

## 1.3.5
* Added automatic config of `post_content`, `post_title` and `post_thumbnail` if no settings is set __requires editable contents to be in a container with class `hentry`__, can be turned off by setting `auto_configure` to `false`
* Added automatic config of `post_content`, `post_title` and `post_thumbnail` if no settings are set __requires editable contents to be in a wrapping container with class `hentry` like `<article class="hentry"><h1 class="entry-title"></h1><div class="entry-content"></entry-content></article>`__, can be turned off by setting `auto_configure` to `false`
* Added option `auto_configure`
* Added check/set post locks
* Removed [plugin-update-checker](https://github.com/YahnisElsts/plugin-update-checker) in favor for the official plugin repo
Expand Down
2 changes: 1 addition & 1 deletion README.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ <h2 id="features">Features</h2>
<li>[x] Basic RTL support</li>
<li>[x] Choice-based fields with dropdown-select</li>
<li>[x] CTRL + click on link in editor to open in new tab/window</li>
<li>[x] Automatic config of <code>post_content</code>, <code>post_title</code> and <code>post_thumbnail</code> if no settings is set <strong>requires editable contents to be in a container with class <code>hentry</code></strong>, can be turned off by setting <code>auto_configure</code> to <code>false</code></li>
<li>[x] Automatic config of <code>post_content</code>, <code>post_title</code> and <code>post_thumbnail</code> if no settings are set <strong>requires editable contents to be in a wrapping container with class <code>hentry</code> like <code>&lt;article class=&quot;hentry&quot;&gt;&lt;h1 class=&quot;entry-title&quot;&gt;&lt;/h1&gt;&lt;div class=&quot;entry-content&quot;&gt;&lt;/entry-content&gt;&lt;/article&gt;</code></strong>, can be turned off by setting <code>auto_configure</code> to <code>false</code></li>
<li>[x] Check/Set post locks</li>
</ul>
<h2 id="to-do-s">To do&#39;s</h2>
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ WA Fronted (or just “Fronted“) is a frontend editor for WordPress. It’s a
* [x] Basic RTL support
* [x] Choice-based fields with dropdown-select
* [x] CTRL + click on link in editor to open in new tab/window
* [x] Automatic config of `post_content`, `post_title` and `post_thumbnail` if no settings is set __requires editable contents to be in a container with class `hentry`__, can be turned off by setting `auto_configure` to `false`
* [x] Automatic config of `post_content`, `post_title` and `post_thumbnail` if no settings are set __requires editable contents to be in a wrapping container with class `hentry` like `<article class="hentry"><h1 class="entry-title"></h1><div class="entry-content"></entry-content></article>`__, can be turned off by setting `auto_configure` to `false`
* [x] Check/Set post locks

## To do's
Expand Down
2 changes: 1 addition & 1 deletion css/style.css

Large diffs are not rendered by default.

20 changes: 2 additions & 18 deletions js/min/scripts.min.js

Large diffs are not rendered by default.

19 changes: 12 additions & 7 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
* 3rd party libs
*/
//@prepros-prepend 'modernizr.custom.js'
//@prepros-prepend '../bower_components/tipso/src/tipso.min.js'
//@prepros-prepend '../bower_components/toastr/toastr.js'
//@prepros-prepend '../bower_components/select2/dist/js/select2.full.min.js'
//@prepros-prepend '../bower_components/rangy/rangy-core.min.js'

/**
* Custom packages
Expand Down Expand Up @@ -270,7 +266,10 @@ var wa_fronted = window.wa_fronted;

var this_dp = $(el),
opts = {
dateFormat : 'yy-mm-dd'
dateFormat : 'yy-mm-dd',
beforeShow : function(input, inst){
inst.dpDiv.addClass('wa-fronted-datepicker');
}
};

if(this_dp.attr('data-time') !== 'false'){
Expand All @@ -286,6 +285,7 @@ var wa_fronted = window.wa_fronted;

$('#wa-fronted-settings-modal select').select2({
minimumResultsForSearch : 10,
dropdownCssClass: 'wa-fronted-select2',
formatNoMatches : function(term){
var no_results_string = self.i18n('No results found.');

Expand Down Expand Up @@ -585,6 +585,9 @@ var wa_fronted = window.wa_fronted;
*/
autosave: function(editor_container, options){
var self = this;
if(global_vars.post_revisions === 0){
return;
}
// Setup timer so we dont spam database with autosaves
clearTimeout(self.data.timers.autosave);
self.data.timers.autosave = setTimeout(function(){
Expand All @@ -606,7 +609,8 @@ var wa_fronted = window.wa_fronted;

save_this.push({
'content' : content,
'options' : editors[i].options
'options' : editors[i].options,
'extra' : self.apply_filters('autosave_extra_data', '', content, editors[i].options)
});
}
}
Expand Down Expand Up @@ -655,7 +659,8 @@ var wa_fronted = window.wa_fronted;

save_this.push({
'content' : content,
'options' : editors[i].options
'options' : editors[i].options,
'extra' : self.apply_filters('save_extra_data', '', content, editors[i].options)
});
}
}
Expand Down
8 changes: 7 additions & 1 deletion prepros.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -1402,7 +1402,13 @@
"comments": false,
"preserve_line": false,
"screw_ie8": false,
"preamble": null
"preamble": null,
"indent_start": 0,
"indent_level": 4,
"width": 80,
"max_line_len": 32000,
"source_map": null,
"quote_style": 0
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
=== WA Fronted ===
Contributors: jesperb
Tags: frontend, editor, edit, medium, content
Requires at least: 4.0
Tested up to: 4.3.1
Expand All @@ -14,11 +15,12 @@ A frontend editor for WordPress. Free and open source project with a goal to enh
**[Live Demo](http://fronted.westart.se)**

**[Documentation](https://github.com/jesperbjerke/wa-fronted/wiki)**

**[To report bugs or feature requests, please use Github issues](https://github.com/jesperbjerke/wa-fronted/issues)**

![](https://github.com/jesperbjerke/wa-fronted/blob/master/screenshots/4GUJJnK01o.gif)

## Features
= Features =

* [x] Support for extensions and integrations
* [x] Supports Custom Post Types
Expand Down Expand Up @@ -48,7 +50,7 @@ A frontend editor for WordPress. Free and open source project with a goal to enh
* [x] Basic RTL support
* [x] Choice-based fields with dropdown-select
* [x] CTRL + click on link in editor to open in new tab/window
* [x] Automatic config of `post_content`, `post_title` and `post_thumbnail` if no settings is set __requires editable contents to be in a container with class `hentry`__, can be turned off by setting `auto_configure` to `false`
* [x] Automatic config of `post_content`, `post_title` and `post_thumbnail` if no settings are set __requires editable contents to be in a wrapping container with class `hentry` like `<article class="hentry"><h1 class="entry-title"></h1><div class="entry-content"></entry-content></article>`__, can be turned off by setting `auto_configure` to `false`
* [x] Check/Set post locks

== Screenshots ==
Expand Down
59 changes: 2 additions & 57 deletions scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -625,61 +625,6 @@ body{
}
}

.resize_handles{
position: absolute;
display: none;
z-index: 999;
cursor: pointer;

&.show{
display: block;
}

.resize_handle{
border: 1px solid #fff;
background: $wp_admin_color;
color: #fff;
position: absolute;
font-size: 15px;
padding: 2px;
text-align: center;
vertical-align: middle;

&:hover{
background: #333;
color: #45bbe6;
}

&.nw{
left: 0;
top: 0;
cursor: nwse-resize;
}

&.ne{
right: 0;
top: 0;
cursor: nesw-resize;
}

&.sw{
left: 0;
bottom: 0;
cursor: nesw-resize;
}

&.se{
right: 0;
bottom: 0;
cursor: nwse-resize;
}

&:hover{
background-color: #444;
}
}
}

#wa-fronted-edit-shortcode{
position: absolute;
margin-top: -42px;
Expand Down Expand Up @@ -906,7 +851,7 @@ body{
z-index: 160000;
}

.select2-drop{
.select2-drop.wa-fronted-select2{
border: 0;
background: none #333;
font-size: 1.4rem;
Expand Down Expand Up @@ -997,7 +942,7 @@ body{
}
}

#ui-datepicker-div{
#ui-datepicker-div.wa-fronted-datepicker{
border-radius: 3px;
border: 0;
box-shadow: 0 1px 5px rgba(#000, 0.2);
Expand Down
Loading

0 comments on commit a6279a8

Please sign in to comment.