From 166e0b59616ee1f0ab7d2dddb79ca303264c2e36 Mon Sep 17 00:00:00 2001 From: Zoddo Date: Wed, 15 Jul 2015 16:07:49 +0200 Subject: [PATCH] [ticket/13997] Add posting_editor_submit_buttons template event PHPBB3-13997 --- phpBB/docs/events.md | 8 ++++++++ phpBB/styles/prosilver/template/posting_editor.html | 1 + phpBB/styles/subsilver2/template/posting_body.html | 1 + 3 files changed, 10 insertions(+) diff --git a/phpBB/docs/events.md b/phpBB/docs/events.md index fc123154e8..4bb3544c8c 100644 --- a/phpBB/docs/events.md +++ b/phpBB/docs/events.md @@ -1094,6 +1094,14 @@ posting_editor_subject_before * Since: 3.1.0-a2 * Purpose: Add field (e.g. textbox) to the posting screen before the subject +posting_editor_submit_buttons +=== +* Locations: + + styles/prosilver/template/posting_editor.html + + styles/subsilver2/template/posting_body.html +* Since: 3.1.6-RC1 +* Purpose: Add custom buttons in the posting editor + posting_layout_include_panel_body === * Locations: diff --git a/phpBB/styles/prosilver/template/posting_editor.html b/phpBB/styles/prosilver/template/posting_editor.html index 1581afdb12..1a9b3398aa 100644 --- a/phpBB/styles/prosilver/template/posting_editor.html +++ b/phpBB/styles/prosilver/template/posting_editor.html @@ -89,6 +89,7 @@
{S_HIDDEN_ADDRESS_FIELD} {S_HIDDEN_FIELDS} +     onclick="document.getElementById('postform').action += '#preview';" />  diff --git a/phpBB/styles/subsilver2/template/posting_body.html b/phpBB/styles/subsilver2/template/posting_body.html index cde6873a90..20efa11987 100644 --- a/phpBB/styles/subsilver2/template/posting_body.html +++ b/phpBB/styles/subsilver2/template/posting_body.html @@ -380,6 +380,7 @@ {S_HIDDEN_FIELDS}   +