Version Description
- Changed the WYSIWYG overlay button from "Update and close" to a primary button called "Save and close"
- Changed so that the widget is saved when closing the WYSIWYG overlay
- Added pot translation file and Swedish translation (contact me if you wish to help translate, david.martensson@gmail.com)
Download this release
Release Info
Developer | feedmeastraycat |
Plugin | WP Editor Widget |
Version | 0.2.0 |
Comparing to | |
See all releases |
Code changes from version 0.1.1 to 0.2.0
- assets/js/admin.js +1 -0
- langs/wpeditorwidget-sv_SE.mo +0 -0
- langs/wpeditorwidget-sv_SE.po +49 -0
- readme.txt +7 -2
- wp-editor-widget.php +13 -3
- wp-editor-widget.pot +49 -0
assets/js/admin.js
CHANGED
@@ -41,6 +41,7 @@ WPEditorWidget = {
|
|
41 |
*/
|
42 |
updateWidgetAndCloseEditor: function() {
|
43 |
jQuery('#'+ this.currentContentId).val(tinyMCE.editors['wp-editor-widget'].getContent());
|
|
|
44 |
this.hideEditor();
|
45 |
}
|
46 |
|
41 |
*/
|
42 |
updateWidgetAndCloseEditor: function() {
|
43 |
jQuery('#'+ this.currentContentId).val(tinyMCE.editors['wp-editor-widget'].getContent());
|
44 |
+
wpWidgets.save(jQuery('#'+ this.currentContentId).closest('div.widget'), 0, 1, 0);
|
45 |
this.hideEditor();
|
46 |
}
|
47 |
|
langs/wpeditorwidget-sv_SE.mo
ADDED
Binary file
|
langs/wpeditorwidget-sv_SE.po
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP Editor Widget 0.2.0\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-06-28 10:58+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-06-28 11:01+0100\n"
|
7 |
+
"Last-Translator: DMR <david.martensson@gmail.com>\n"
|
8 |
+
"Language-Team: Feed Me A Stray Cat <david.martensson@gmail.com>\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;esc_attr_e;esc_attr__;"
|
13 |
+
"esc_html__;esc_html_e;_x;_ex;esc_attr_x;esc_html_x;_n;_nx;_n_noop;_nx_noop\n"
|
14 |
+
"X-Poedit-Basepath: .\n"
|
15 |
+
"X-Generator: Poedit 1.5.5\n"
|
16 |
+
"Language: sv_SE\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
|
19 |
+
#: wp-editor-widget.php:54
|
20 |
+
msgid "Close"
|
21 |
+
msgstr "Stäng"
|
22 |
+
|
23 |
+
#: wp-editor-widget.php:63
|
24 |
+
msgid "Save and close"
|
25 |
+
msgstr "Spara och stäng"
|
26 |
+
|
27 |
+
#: wp-editor-widget.php:95
|
28 |
+
msgid "WP Editor Widget"
|
29 |
+
msgstr "WP Editor Widget"
|
30 |
+
|
31 |
+
#: wp-editor-widget.php:96
|
32 |
+
msgid "Adds an WP Editor Widget for WYSIWYG content."
|
33 |
+
msgstr "Skapar en ny WP Editor Widget för WYSIWYG-innehåll."
|
34 |
+
|
35 |
+
#: wp-editor-widget.php:140
|
36 |
+
msgid "New title"
|
37 |
+
msgstr "Ny titel"
|
38 |
+
|
39 |
+
#: wp-editor-widget.php:154
|
40 |
+
msgid "Title"
|
41 |
+
msgstr "Titel"
|
42 |
+
|
43 |
+
#: wp-editor-widget.php:158
|
44 |
+
msgid "Edit content"
|
45 |
+
msgstr "Redigera innehåll"
|
46 |
+
|
47 |
+
#: wp-editor-widget.php:162
|
48 |
+
msgid "Output title"
|
49 |
+
msgstr "Skriv ut titel"
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: feedmeastraycat
|
3 |
Tags: widget, wysiwyg, editor
|
4 |
Requires at least: 3.5.1
|
5 |
-
Tested up to: 3.5.
|
6 |
-
Stable tag: 0.
|
7 |
License: MIT
|
8 |
|
9 |
WP Editor Widget adds a WYSIWYG widget using the wp_editor().
|
@@ -30,6 +30,11 @@ adding a custom post type for each widget.
|
|
30 |
|
31 |
== Changelog ==
|
32 |
|
|
|
|
|
|
|
|
|
|
|
33 |
= 0.1.1 =
|
34 |
* CSS fix for widget editor close button
|
35 |
|
2 |
Contributors: feedmeastraycat
|
3 |
Tags: widget, wysiwyg, editor
|
4 |
Requires at least: 3.5.1
|
5 |
+
Tested up to: 3.5.2
|
6 |
+
Stable tag: 0.2.0
|
7 |
License: MIT
|
8 |
|
9 |
WP Editor Widget adds a WYSIWYG widget using the wp_editor().
|
30 |
|
31 |
== Changelog ==
|
32 |
|
33 |
+
= 0.2.0 =
|
34 |
+
* Changed the WYSIWYG overlay button from "Update and close" to a primary button called "Save and close"
|
35 |
+
* Changed so that the widget is saved when closing the WYSIWYG overlay
|
36 |
+
* Added pot translation file and Swedish translation (contact me if you wish to help translate, david.martensson@gmail.com)
|
37 |
+
|
38 |
= 0.1.1 =
|
39 |
* CSS fix for widget editor close button
|
40 |
|
wp-editor-widget.php
CHANGED
@@ -4,13 +4,14 @@ Plugin Name: WP Editor Widget
|
|
4 |
Plugin URI: http://oddalice.com/
|
5 |
Description: WP Editor Widget adds a WYSIWYG widget using the wp_editor().
|
6 |
Author: David Mårtensson, Odd Alice
|
7 |
-
Version: 0.
|
8 |
Author URI: http://www.feedmeastraycat.net/
|
9 |
*/
|
10 |
|
11 |
|
12 |
|
13 |
// Setup actions
|
|
|
14 |
add_action('admin_init', array('WPEditorWidget', 'admin_init'));
|
15 |
add_action('widgets_admin_page', array('WPEditorWidget', 'widgets_admin_page'), 100);
|
16 |
add_action('widgets_init', array('WPEditorWidget', 'widgets_init'));
|
@@ -26,13 +27,22 @@ class WPEditorWidget
|
|
26 |
/**
|
27 |
* @var string
|
28 |
*/
|
29 |
-
const VERSION = "0.
|
30 |
|
31 |
/**
|
32 |
* @var string
|
33 |
*/
|
34 |
const TEXTDOMAIN = "wpeditorwidget";
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
/**
|
37 |
* Action: admin_init
|
38 |
*/
|
@@ -60,7 +70,7 @@ class WPEditorWidget
|
|
60 |
wp_editor('', 'wp-editor-widget', $settings);
|
61 |
?>
|
62 |
<p>
|
63 |
-
<a href="javascript:WPEditorWidget.updateWidgetAndCloseEditor();" class="button"><?php _e('
|
64 |
</p>
|
65 |
</div>
|
66 |
</div>
|
4 |
Plugin URI: http://oddalice.com/
|
5 |
Description: WP Editor Widget adds a WYSIWYG widget using the wp_editor().
|
6 |
Author: David Mårtensson, Odd Alice
|
7 |
+
Version: 0.2.0
|
8 |
Author URI: http://www.feedmeastraycat.net/
|
9 |
*/
|
10 |
|
11 |
|
12 |
|
13 |
// Setup actions
|
14 |
+
add_action('init', array('WPEditorWidget', 'init'));
|
15 |
add_action('admin_init', array('WPEditorWidget', 'admin_init'));
|
16 |
add_action('widgets_admin_page', array('WPEditorWidget', 'widgets_admin_page'), 100);
|
17 |
add_action('widgets_init', array('WPEditorWidget', 'widgets_init'));
|
27 |
/**
|
28 |
* @var string
|
29 |
*/
|
30 |
+
const VERSION = "0.2.0";
|
31 |
|
32 |
/**
|
33 |
* @var string
|
34 |
*/
|
35 |
const TEXTDOMAIN = "wpeditorwidget";
|
36 |
|
37 |
+
/**
|
38 |
+
* Action: init
|
39 |
+
*/
|
40 |
+
public static function init()
|
41 |
+
{
|
42 |
+
// Load translations
|
43 |
+
load_plugin_textdomain(self::TEXTDOMAIN, false, dirname(plugin_basename(__FILE__)).'/langs/');
|
44 |
+
}
|
45 |
+
|
46 |
/**
|
47 |
* Action: admin_init
|
48 |
*/
|
70 |
wp_editor('', 'wp-editor-widget', $settings);
|
71 |
?>
|
72 |
<p>
|
73 |
+
<a href="javascript:WPEditorWidget.updateWidgetAndCloseEditor(true);" class="button button-primary"><?php _e('Save and close', self::TEXTDOMAIN) ?></a>
|
74 |
</p>
|
75 |
</div>
|
76 |
</div>
|
wp-editor-widget.pot
ADDED
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP Editor Widget 0.2.0\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-06-28 10:58+0100\n"
|
6 |
+
"PO-Revision-Date: 2013-06-28 10:58+0100\n"
|
7 |
+
"Last-Translator: DMR <david.martensson@gmail.com>\n"
|
8 |
+
"Language-Team: Feed Me A Stray Cat <david.martensson@gmail.com>\n"
|
9 |
+
"Language: en\n"
|
10 |
+
"MIME-Version: 1.0\n"
|
11 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
12 |
+
"Content-Transfer-Encoding: 8bit\n"
|
13 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;esc_attr_e;esc_attr__;"
|
14 |
+
"esc_html__;esc_html_e;_x;_ex;esc_attr_x;esc_html_x;_n;_nx;_n_noop;_nx_noop\n"
|
15 |
+
"X-Poedit-Basepath: .\n"
|
16 |
+
"X-Generator: Poedit 1.5.5\n"
|
17 |
+
"X-Poedit-SearchPath-0: .\n"
|
18 |
+
|
19 |
+
#: wp-editor-widget.php:54
|
20 |
+
msgid "Close"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: wp-editor-widget.php:63
|
24 |
+
msgid "Save and close"
|
25 |
+
msgstr ""
|
26 |
+
|
27 |
+
#: wp-editor-widget.php:95
|
28 |
+
msgid "WP Editor Widget"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: wp-editor-widget.php:96
|
32 |
+
msgid "Adds an WP Editor Widget for WYSIWYG content."
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: wp-editor-widget.php:140
|
36 |
+
msgid "New title"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: wp-editor-widget.php:154
|
40 |
+
msgid "Title"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: wp-editor-widget.php:158
|
44 |
+
msgid "Edit content"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: wp-editor-widget.php:162
|
48 |
+
msgid "Output title"
|
49 |
+
msgstr ""
|