Version Description
- Added German translation (Thanks to @ohaucke)
- Renamed the editor id to comply with WP Codex tips (Might help with Issue #3)
Download this release
Release Info
Developer | feedmeastraycat |
Plugin | WP Editor Widget |
Version | 0.5.4 |
Comparing to | |
See all releases |
Code changes from version 0.5.3 to 0.5.4
- assets/css/admin.css +4 -0
- assets/js/admin.js +5 -7
- langs/wp-editor-widget-de_DE.mo +0 -0
- langs/wp-editor-widget-de_DE.po +52 -0
- readme.txt +11 -2
- wp-editor-widget.php +4 -4
assets/css/admin.css
CHANGED
@@ -44,6 +44,10 @@
|
|
44 |
margin: 50px;
|
45 |
}
|
46 |
|
|
|
|
|
|
|
|
|
47 |
/**
|
48 |
* HiDPI Displays
|
49 |
*/
|
44 |
margin: 50px;
|
45 |
}
|
46 |
|
47 |
+
#available-widgets [class*=wp_editor_widget] .widget-title:before {
|
48 |
+
content: "\f478";
|
49 |
+
}
|
50 |
+
|
51 |
/**
|
52 |
* HiDPI Displays
|
53 |
*/
|
assets/js/admin.js
CHANGED
@@ -53,25 +53,23 @@ WPEditorWidget = {
|
|
53 |
* Set editor content
|
54 |
*/
|
55 |
setEditorContent: function(contentId) {
|
56 |
-
var editor = tinyMCE.EditorManager.get('
|
57 |
var content = jQuery('#'+ contentId).val();
|
58 |
|
59 |
-
if (typeof editor == "
|
60 |
-
jQuery('#wp-editor-widget').val(content);
|
61 |
-
}
|
62 |
-
else {
|
63 |
editor.setContent(content);
|
64 |
}
|
|
|
65 |
},
|
66 |
|
67 |
/**
|
68 |
* Update widget and close the editor
|
69 |
*/
|
70 |
updateWidgetAndCloseEditor: function() {
|
71 |
-
var editor = tinyMCE.EditorManager.get('
|
72 |
|
73 |
if (typeof editor == "undefined" || editor == null || editor.isHidden()) {
|
74 |
-
var content = jQuery('#
|
75 |
}
|
76 |
else {
|
77 |
var content = editor.getContent();
|
53 |
* Set editor content
|
54 |
*/
|
55 |
setEditorContent: function(contentId) {
|
56 |
+
var editor = tinyMCE.EditorManager.get('wpeditorwidget');
|
57 |
var content = jQuery('#'+ contentId).val();
|
58 |
|
59 |
+
if (typeof editor == "object" && editor !== null) {
|
|
|
|
|
|
|
60 |
editor.setContent(content);
|
61 |
}
|
62 |
+
jQuery('#wpeditorwidget').val(content);
|
63 |
},
|
64 |
|
65 |
/**
|
66 |
* Update widget and close the editor
|
67 |
*/
|
68 |
updateWidgetAndCloseEditor: function() {
|
69 |
+
var editor = tinyMCE.EditorManager.get('wpeditorwidget');
|
70 |
|
71 |
if (typeof editor == "undefined" || editor == null || editor.isHidden()) {
|
72 |
+
var content = jQuery('#wpeditorwidget').val();
|
73 |
}
|
74 |
else {
|
75 |
var content = editor.getContent();
|
langs/wp-editor-widget-de_DE.mo
ADDED
Binary file
|
langs/wp-editor-widget-de_DE.po
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WP Editor Widget 0.3.1\n"
|
4 |
+
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2013-08-08 11:00+0100\n"
|
6 |
+
"PO-Revision-Date: 2014-06-07 00:20+0100\n"
|
7 |
+
"Last-Translator: ohaucke <ohaucke@gadean.de>\n"
|
8 |
+
"Language-Team: \n"
|
9 |
+
"Language: de_DE\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__;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 |
+
"X-Poedit-Language: German\n"
|
17 |
+
"X-Poedit-Country: GERMANY\n"
|
18 |
+
"X-Poedit-SourceCharset: utf-8\n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
|
21 |
+
#: wp-editor-widget.php:72
|
22 |
+
msgid "Close"
|
23 |
+
msgstr "Schließen"
|
24 |
+
|
25 |
+
#: wp-editor-widget.php:81
|
26 |
+
msgid "Save and close"
|
27 |
+
msgstr "Speichern und schließen"
|
28 |
+
|
29 |
+
#: wp-editor-widget.php:113
|
30 |
+
msgid "Rich text"
|
31 |
+
msgstr "Rich Text"
|
32 |
+
|
33 |
+
#: wp-editor-widget.php:114
|
34 |
+
msgid "Arbitrary text, HTML or rich text through the standard WordPress visual editor."
|
35 |
+
msgstr "Beliebiger Text, HTML oder Rich Text mit dem Standard WordPress Editor."
|
36 |
+
|
37 |
+
#: wp-editor-widget.php:158
|
38 |
+
msgid "New title"
|
39 |
+
msgstr "Neuer Titel"
|
40 |
+
|
41 |
+
#: wp-editor-widget.php:172
|
42 |
+
msgid "Title"
|
43 |
+
msgstr "Titel"
|
44 |
+
|
45 |
+
#: wp-editor-widget.php:176
|
46 |
+
msgid "Edit content"
|
47 |
+
msgstr "Inhalt bearbeiten"
|
48 |
+
|
49 |
+
#: wp-editor-widget.php:180
|
50 |
+
msgid "Output title"
|
51 |
+
msgstr "Titel anzeigen?"
|
52 |
+
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: feedmeastraycat
|
3 |
Tags: widget, wysiwyg, editor, rich text
|
4 |
Requires at least: 3.5.1
|
5 |
-
Tested up to:
|
6 |
-
Stable tag: 0.5.
|
7 |
License: MIT
|
8 |
|
9 |
WP Editor Widget adds a rich text widget where the content is edited using the standard WordPress visual editor.
|
@@ -15,6 +15,11 @@ It uses the WP core function wp_editor() without adding a custom post type post
|
|
15 |
|
16 |
Feel free to help with developement or issue reporting on [Github](https://github.com/feedmeastraycat/wp-editor-widget)!
|
17 |
|
|
|
|
|
|
|
|
|
|
|
18 |
== Screenshots ==
|
19 |
|
20 |
1. The plugin adds a widget called "Rich text".
|
@@ -32,6 +37,10 @@ Feel free to help with developement or issue reporting on [Github](https://githu
|
|
32 |
|
33 |
== Changelog ==
|
34 |
|
|
|
|
|
|
|
|
|
35 |
= 0.5.3 =
|
36 |
* Bugfix: [Issue #8](https://github.com/feedmeastraycat/wp-editor-widget/issues/8) - Filters for WP Editor Widget content wasn't always loaded *(since 0.5.0)*
|
37 |
|
2 |
Contributors: feedmeastraycat
|
3 |
Tags: widget, wysiwyg, editor, rich text
|
4 |
Requires at least: 3.5.1
|
5 |
+
Tested up to: 4.1.1
|
6 |
+
Stable tag: 0.5.4
|
7 |
License: MIT
|
8 |
|
9 |
WP Editor Widget adds a rich text widget where the content is edited using the standard WordPress visual editor.
|
15 |
|
16 |
Feel free to help with developement or issue reporting on [Github](https://github.com/feedmeastraycat/wp-editor-widget)!
|
17 |
|
18 |
+
= Languages =
|
19 |
+
* English
|
20 |
+
* Swedish
|
21 |
+
* German
|
22 |
+
|
23 |
== Screenshots ==
|
24 |
|
25 |
1. The plugin adds a widget called "Rich text".
|
37 |
|
38 |
== Changelog ==
|
39 |
|
40 |
+
= 0.5.4 =
|
41 |
+
* Added German translation *(Thanks to [@ohaucke](https://github.com/ohaucke))*
|
42 |
+
* Renamed the editor id to comply with WP Codex tips *(Might help with [Issue #3](https://github.com/feedmeastraycat/wp-editor-widget/issues/3))*
|
43 |
+
|
44 |
= 0.5.3 =
|
45 |
* Bugfix: [Issue #8](https://github.com/feedmeastraycat/wp-editor-widget/issues/8) - Filters for WP Editor Widget content wasn't always loaded *(since 0.5.0)*
|
46 |
|
wp-editor-widget.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP Editor Widget
|
|
4 |
Plugin URI: https://github.com/feedmeastraycat/wp-editor-widget
|
5 |
Description: WP Editor Widget adds a WYSIWYG widget using the wp_editor().
|
6 |
Author: David Mårtensson, Odd Alice
|
7 |
-
Version: 0.5.
|
8 |
Author URI: http://www.feedmeastraycat.net/
|
9 |
Text Domain: wp-editor-widget
|
10 |
Domain Path: /langs
|
@@ -27,7 +27,7 @@ class WPEditorWidget {
|
|
27 |
/**
|
28 |
* @var string
|
29 |
*/
|
30 |
-
const VERSION = "0.5.
|
31 |
|
32 |
/**
|
33 |
* Action: init
|
@@ -87,9 +87,9 @@ class WPEditorWidget {
|
|
87 |
<div class="editor">
|
88 |
<?php
|
89 |
$settings = array(
|
90 |
-
'textarea_rows' =>
|
91 |
);
|
92 |
-
wp_editor( '', '
|
93 |
?>
|
94 |
<p>
|
95 |
<a href="javascript:WPEditorWidget.updateWidgetAndCloseEditor(true);" class="button button-primary"><?php _e( 'Save and close', 'wp-editor-widget' ); ?></a>
|
4 |
Plugin URI: https://github.com/feedmeastraycat/wp-editor-widget
|
5 |
Description: WP Editor Widget adds a WYSIWYG widget using the wp_editor().
|
6 |
Author: David Mårtensson, Odd Alice
|
7 |
+
Version: 0.5.4
|
8 |
Author URI: http://www.feedmeastraycat.net/
|
9 |
Text Domain: wp-editor-widget
|
10 |
Domain Path: /langs
|
27 |
/**
|
28 |
* @var string
|
29 |
*/
|
30 |
+
const VERSION = "0.5.4";
|
31 |
|
32 |
/**
|
33 |
* Action: init
|
87 |
<div class="editor">
|
88 |
<?php
|
89 |
$settings = array(
|
90 |
+
'textarea_rows' => 20,
|
91 |
);
|
92 |
+
wp_editor( '', 'wpeditorwidget', $settings );
|
93 |
?>
|
94 |
<p>
|
95 |
<a href="javascript:WPEditorWidget.updateWidgetAndCloseEditor(true);" class="button button-primary"><?php _e( 'Save and close', 'wp-editor-widget' ); ?></a>
|