Skip to content

Commit 32b1cfe

Browse files
author
martec
committed
0.4.8
1 parent 24c2caf commit 32b1cfe

4 files changed

Lines changed: 12 additions & 7 deletions

File tree

re_version_file.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"stable": {
33
"0.4": {
4-
"current": "0.4.7",
4+
"current": "0.4.8",
55
"announcement": "https://www.phpbb.com/community/viewtopic.php?f=456&t=2427126",
6-
"download": "https://github.com/martec/Rin-Editor_for_phpBB/archive/0.4.7-beta.zip",
6+
"download": "https://github.com/martec/Rin-Editor_for_phpBB/archive/0.4.8-beta.zip",
77
"eol": null,
88
"security": false
99
}

rin/editor/composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"type": "phpbb-extension",
44
"description": "Rin Editor for phpBB",
55
"homepage": "https://github.com/martec/Rin-Editor_for_phpBB",
6-
"version": "0.4.7",
7-
"time": "2023-05-03",
6+
"version": "0.4.8",
7+
"time": "2023-05-14",
88
"license": "GPL-2.0-only",
99
"authors": [
1010
{

rin/editor/event/main_listener.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,11 @@ public function rce_quick_reply($event)
8484
{
8585
if ($this->config['RCE_quickreply'] && $this->request->is_ajax() && $event['mode'] == 'quote')
8686
{
87-
$data = array('quick_reply_msg' => $event['post_data']['post_text']);
87+
$post_data = $event['post_data'];
88+
$post_data['post_text'] = preg_replace('#\[mention\](.*?)\[\/mention\]#uis', '@\\1', $post_data['post_text']);
89+
$post_data['post_text'] = preg_replace('#\[smention u=([0-9]+)\](.*?)\[\/smention\]#uis', '@\\2', $post_data['post_text']);
90+
$post_data['post_text'] = preg_replace('#\[smention g=([0-9]+)\](.*?)\[\/smention\]#uis', '@\\2', $post_data['post_text']);
91+
$data = array('quick_reply_msg' => $post_data['post_text']);
8892
$json = new \phpbb\json_response();
8993
$json->send($data);
9094
}

rin/editor/styles/all/template/js/automention.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)