Skip to content

Commit

Permalink
0.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
martec committed May 14, 2023
1 parent 24c2caf commit 32b1cfe
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
4 changes: 2 additions & 2 deletions re_version_file.json
@@ -1,9 +1,9 @@
{
"stable": {
"0.4": {
"current": "0.4.7",
"current": "0.4.8",
"announcement": "https://www.phpbb.com/community/viewtopic.php?f=456&t=2427126",
"download": "https://github.com/martec/Rin-Editor_for_phpBB/archive/0.4.7-beta.zip",
"download": "https://github.com/martec/Rin-Editor_for_phpBB/archive/0.4.8-beta.zip",
"eol": null,
"security": false
}
Expand Down
4 changes: 2 additions & 2 deletions rin/editor/composer.json
Expand Up @@ -3,8 +3,8 @@
"type": "phpbb-extension",
"description": "Rin Editor for phpBB",
"homepage": "https://github.com/martec/Rin-Editor_for_phpBB",
"version": "0.4.7",
"time": "2023-05-03",
"version": "0.4.8",
"time": "2023-05-14",
"license": "GPL-2.0-only",
"authors": [
{
Expand Down
6 changes: 5 additions & 1 deletion rin/editor/event/main_listener.php
Expand Up @@ -84,7 +84,11 @@ public function rce_quick_reply($event)
{
if ($this->config['RCE_quickreply'] && $this->request->is_ajax() && $event['mode'] == 'quote')
{
$data = array('quick_reply_msg' => $event['post_data']['post_text']);
$post_data = $event['post_data'];
$post_data['post_text'] = preg_replace('#\[mention\](.*?)\[\/mention\]#uis', '@\\1', $post_data['post_text']);
$post_data['post_text'] = preg_replace('#\[smention u=([0-9]+)\](.*?)\[\/smention\]#uis', '@\\2', $post_data['post_text']);
$post_data['post_text'] = preg_replace('#\[smention g=([0-9]+)\](.*?)\[\/smention\]#uis', '@\\2', $post_data['post_text']);
$data = array('quick_reply_msg' => $post_data['post_text']);
$json = new \phpbb\json_response();
$json->send($data);
}
Expand Down
5 changes: 3 additions & 2 deletions rin/editor/styles/all/template/js/automention.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 32b1cfe

Please sign in to comment.