Skip to content

Commit

Permalink
0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
martec committed Jul 6, 2017
1 parent 00507be commit debb149
Show file tree
Hide file tree
Showing 27 changed files with 470 additions and 449 deletions.
1 change: 1 addition & 0 deletions rin/editor/acp/main_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function main($id, $mode)
'RCE_desnopop' => array('default' => 0, 'validation' => array()),
'RCE_partial' => array('default' => 1, 'validation' => array()),
'RCE_seltxt' => array('default' => 0, 'validation' => array()),
'RCE_rmv_acp_color' => array('default' => 0, 'validation' => array()),
'RCE_cache' => array('default' => 0, 'validation' => array('num', false, 0, 86400)),
'RCE_imgurapi' => array('default' => '', 'validation' => array('string', false, 0, 255)),
'RCE_skin' => array('default' => 'moonocolor', 'validation' => array('string', false, 0, 255)),
Expand Down
2 changes: 1 addition & 1 deletion rin/editor/adm/style/event/acp_posting_buttons_before.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{% include 'rineditor_full.html' %}
<!-- INCLUDEJS @rin_editor/js/rck.acp.js -->
{% INCLUDEJS '@rin_editor/js/rck.acp.js' %}
156 changes: 81 additions & 75 deletions rin/editor/adm/style/rin_editor_body.html
Original file line number Diff line number Diff line change
@@ -1,122 +1,128 @@
<!-- INCLUDE overall_header.html -->
{% INCLUDE 'overall_header.html' %}

<h1>{L_SETTINGS}</h1>
<h1>{{ lang('SETTINGS') }}</h1>

<form id="rin_editor_settings" method="post" action="{U_ACTION}">
<form id="rin_editor_settings" method="post" action="{{ U_ACTION }}">
<fieldset>
<dl>
<dt><label for="RCE_enb_quick">{L_RCE_ENBQUICK_TITLE}</label><br />
<span>{L_RCE_ENBQUICK_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_enb_quick" value="1" <!-- IF RCE_ENB_QUICK -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_enb_quick" value="0" <!-- IF not RCE_ENB_QUICK -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_enb_quick">{{ lang('RCE_ENBQUICK_TITLE') }}</label><br />
<span>{{ lang('RCE_ENBQUICK_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_enb_quick" value="1" {% if RCE_ENB_QUICK %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_enb_quick" value="0" {% if not RCE_ENB_QUICK %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_language">{L_RCE_LANGUAGE_TITLE}</label><br />
<span>{L_RCE_LANGUAGE_DESC}</span></dt>
<dt><label for="RCE_language">{{ lang('RCE_LANGUAGE_TITLE') }}</label><br />
<span>{{ lang('RCE_LANGUAGE_DESC') }}</span></dt>
<dd>
{RCE_LANG_SELECT}
{{ RCE_LANG_SELECT }}
</dd>
</dl>
<dl>
<dt><label>{L_RCE_BBCODE_TITLE}</label><br />
<span>{L_RCE_BBCODE_DESC}</span></dt>
<dt><label>{{ lang('RCE_BBCODE_TITLE') }}</label><br />
<span>{{ lang('RCE_BBCODE_DESC') }}</span></dt>
<dd>
{RCE_BBCODE_OPTION}
{{ RCE_BBCODE_OPTION }}
</dd>
</dl>
<!-- BEGIN RCE_BBCODE_TAGS --><dl class="permbb" id="{RCE_BBCODE_TAGS.bbcode_name_trigger}" style="display:none">
<dt><label for="{RCE_BBCODE_TAGS.bbcode_name}">{L_RCE_PBBCODE_TITLE}{RCE_BBCODE_TAGS.bbcode_name_trigger}</label><br />
<span>{L_RCE_PBBCODE_DESC}</span></dt>
{% for RCE_BBCODE_TAGS in loops.RCE_BBCODE_TAGS %}<dl class="permbb" id="{{ RCE_BBCODE_TAGS.bbcode_name_trigger }}" style="display:none">
<dt><label for="{{ RCE_BBCODE_TAGS.bbcode_name }}">{{ lang('RCE_PBBCODE_TITLE') }}{{ RCE_BBCODE_TAGS.bbcode_name_trigger }}</label><br />
<span>{{ lang('RCE_PBBCODE_DESC') }}</span></dt>
<dd>
{RCE_BBCODE_TAGS.group}
{{ RCE_BBCODE_TAGS.group }}
</dd>
</dl><!-- END RCE_BBCODE_TAGS -->
</dl>{% endfor %}
<dl>
<dt><label for="RCE_mobm_source">{L_RCE_MOBMS_TITLE}</label><br />
<span>{L_RCE_MOBMS_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_mobm_source" value="1" <!-- IF RCE_MOBM_SOURCE -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_mobm_source" value="0" <!-- IF not RCE_MOBM_SOURCE -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_mobm_source">{{ lang('RCE_MOBMS_TITLE') }}</label><br />
<span>{{ lang('RCE_MOBMS_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_mobm_source" value="1" {% if RCE_MOBM_SOURCE %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_mobm_source" value="0" {% if not RCE_MOBM_SOURCE %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_smiley_sc">{L_RCE_SCSMILEY_TITLE}</label><br />
<span>{L_RCE_SCSMILEY_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_smiley_sc" value="1" <!-- IF RCE_SMILEY_SC -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_smiley_sc" value="0" <!-- IF not RCE_SMILEY_SC -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_smiley_sc">{{ lang('RCE_SCSMILEY_TITLE') }}</label><br />
<span>{{ lang('RCE_SCSMILEY_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_smiley_sc" value="1" {% if RCE_SMILEY_SC %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_smiley_sc" value="0" {% if not RCE_SMILEY_SC %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_autosave">{L_RCE_AUTOSAVE_TITLE}</label><br />
<span>{L_RCE_AUTOSAVE_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_autosave" value="1" <!-- IF RCE_AUTOSAVE -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_autosave" value="0" <!-- IF not RCE_AUTOSAVE -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_autosave">{{ lang('RCE_AUTOSAVE_TITLE') }}</label><br />
<span>{{ lang('RCE_AUTOSAVE_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_autosave" value="1" {% if RCE_AUTOSAVE %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_autosave" value="0" {% if not RCE_AUTOSAVE %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_autosave_message">{L_RCE_AUTOSAVEMSG_TITLE}</label><br />
<span>{L_RCE_AUTOSAVEMSG_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_autosave_message" value="1" <!-- IF RCE_AUTOSAVE_MESSAGE -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_autosave_message" value="0" <!-- IF not RCE_AUTOSAVE_MESSAGE -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_autosave_message">{{ lang('RCE_AUTOSAVEMSG_TITLE') }}</label><br />
<span>{{ lang('RCE_AUTOSAVEMSG_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_autosave_message" value="1" {% if RCE_AUTOSAVE_MESSAGE %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_autosave_message" value="0" {% if not RCE_AUTOSAVE_MESSAGE %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_height">{L_RCE_HEIGHT_TITLE}</label><br />
<span>{L_RCE_HEIGHT_DESC}</span></dt>
<dd><input type="number" name="RCE_height" id="RCE_height" size="10" maxlength="3" value="{RCE_HEIGHT}" /></dd>
<dt><label for="RCE_height">{{ lang('RCE_HEIGHT_TITLE') }}</label><br />
<span>{{ lang('RCE_HEIGHT_DESC') }}</span></dt>
<dd><input type="number" name="RCE_height" id="RCE_height" size="10" maxlength="3" value="{{ RCE_HEIGHT }}" /></dd>
</dl>
<dl>
<dt><label for="RCE_quickquote">{L_RCE_QUICKQUOTE_TITLE}</label><br />
<span>{L_RCE_QUICKQUOTE_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_quickquote" value="1" <!-- IF RCE_QUICKQUOTE -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_quickquote" value="0" <!-- IF not RCE_QUICKQUOTE -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_quickquote">{{ lang('RCE_QUICKQUOTE_TITLE') }}</label><br />
<span>{{ lang('RCE_QUICKQUOTE_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_quickquote" value="1" {% if RCE_QUICKQUOTE %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_quickquote" value="0" {% if not RCE_QUICKQUOTE %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_supsment">{L_RCE_SUPSMENT_TITLE}</label><br />
<span>{L_RCE_SUPSMENT_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_supsment" value="1" <!-- IF RCE_SUPSMENT -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_supsment" value="0" <!-- IF not RCE_SUPSMENT -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_supsment">{{ lang('RCE_SUPSMENT_TITLE') }}</label><br />
<span>{{ lang('RCE_SUPSMENT_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_supsment" value="1" {% if RCE_SUPSMENT %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_supsment" value="0" {% if not RCE_SUPSMENT %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_supext">{L_RCE_SUPEXT_TITLE}</label><br />
<span>{L_RCE_SUPEXT_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_supext" value="1" <!-- IF RCE_SUPEXT -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_supext" value="0" <!-- IF not RCE_SUPEXT -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_supext">{{ lang('RCE_SUPEXT_TITLE') }}</label><br />
<span>{{ lang('RCE_SUPEXT_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_supext" value="1" {% if RCE_SUPEXT %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_supext" value="0" {% if not RCE_SUPEXT %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_desnopop">{L_RCE_DESNOPOP_TITLE}</label><br />
<span>{L_RCE_DESNOPOP_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_desnopop" value="1" <!-- IF RCE_DESNOPOP -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_desnopop" value="0" <!-- IF not RCE_DESNOPOP -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_desnopop">{{ lang('RCE_DESNOPOP_TITLE') }}</label><br />
<span>{{ lang('RCE_DESNOPOP_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_desnopop" value="1" {% if RCE_DESNOPOP %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_desnopop" value="0" {% if not RCE_DESNOPOP %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_partial">{L_RCE_PARTIAL_TITLE}</label><br />
<span>{L_RCE_PARTIAL_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_partial" value="1" <!-- IF RCE_PARTIAL -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_partial" value="0" <!-- IF not RCE_PARTIAL -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_partial">{{ lang('RCE_PARTIAL_TITLE') }}</label><br />
<span>{{ lang('RCE_PARTIAL_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_partial" value="1" {% if RCE_PARTIAL %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_partial" value="0" {% if not RCE_PARTIAL %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_seltxt">{L_RCE_SELTXT_TITLE}</label><br />
<span>{L_RCE_SELTXT_DESC}</span</dt>
<dd><input type="radio" class="radio" name="RCE_seltxt" value="1" <!-- IF RCE_SELTXT -->checked="checked" <!-- ENDIF -->/> {L_YES} &nbsp;
<input type="radio" class="radio" name="RCE_seltxt" value="0" <!-- IF not RCE_SELTXT -->checked="checked" <!-- ENDIF -->/> {L_NO}</dd>
<dt><label for="RCE_seltxt">{{ lang('RCE_SELTXT_TITLE') }}</label><br />
<span>{{ lang('RCE_SELTXT_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_seltxt" value="1" {% if RCE_SELTXT %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_seltxt" value="0" {% if not RCE_SELTXT %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_cache">{L_RCE_CACHE_TITLE}</label><br />
<span>{L_RCE_CACHE_DESC}</span></dt>
<dd><input type="number" name="RCE_cache" id="RCE_cache" size="10" maxlength="5" value="{RCE_CACHE}" /></dd>
<dt><label for="RCE_rmv_acp_color">{{ lang('RCE_RMV_ACP_COLOR_TITLE') }}</label><br />
<span>{{ lang('RCE_RMV_ACP_COLOR_DESC') }}</span</dt>
<dd><input type="radio" class="radio" name="RCE_rmv_acp_color" value="1" {% if RCE_RMV_ACP_COLOR %}checked="checked" {% endif %}/> {{ lang('YES') }} &nbsp;
<input type="radio" class="radio" name="RCE_rmv_acp_color" value="0" {% if not RCE_RMV_ACP_COLOR %}checked="checked" {% endif %}/> {{ lang('NO') }}</dd>
</dl>
<dl>
<dt><label for="RCE_imgurapi">{L_RCE_IMGUR_TITLE}</label><br />
<span>{L_RCE_IMGUR_DESC}</span></dt>
<dd><input type="text" name="RCE_imgurapi" id="RCE_imgurapi" size="50" maxlength="100" value="{RCE_IMGURAPI}" /></dd>
<dt><label for="RCE_cache">{{ lang('RCE_CACHE_TITLE') }}</label><br />
<span>{{ lang('RCE_CACHE_DESC') }}</span></dt>
<dd><input type="number" name="RCE_cache" id="RCE_cache" size="10" maxlength="5" value="{{ RCE_CACHE }}" /></dd>
</dl>
<dl>
<dt><label for="RCE_skin">{L_RCE_SKIN_TITLE}</label><br />
<span>{L_RCE_SKIN_DESC}</span></dt>
<dd>{RCE_SKIN_FOLDER}</dd>
<dt><label for="RCE_imgurapi">{{ lang('RCE_IMGUR_TITLE') }}</label><br />
<span>{{ lang('RCE_IMGUR_DESC') }}</span></dt>
<dd><input type="text" name="RCE_imgurapi" id="RCE_imgurapi" size="50" maxlength="100" value="{{ RCE_IMGURAPI }}" /></dd>
</dl>
<dl>
<dt><label for="RCE_skin">{{ lang('RCE_SKIN_TITLE') }}</label><br />
<span>{{ lang('RCE_SKIN_DESC') }}</span></dt>
<dd>{{ RCE_SKIN_FOLDER }}</dd>
</dl>
<p class="submit-buttons">
<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{L_RESET}" />
<input class="button1" type="submit" id="submit" name="submit" value="{{ lang('SUBMIT') }}" />&nbsp;
<input class="button2" type="reset" id="reset" name="reset" value="{{ lang('RESET') }}" />
</p>
{S_FORM_TOKEN}
{{ S_FORM_TOKEN }}
</fieldset>
</form>
<!-- INCLUDEJS @rin_editor/js/perm.js -->
<!-- INCLUDE overall_footer.html -->
{% INCLUDEJS '@rin_editor/js/perm.js' %}
{% INCLUDE 'overall_footer.html' %}
4 changes: 2 additions & 2 deletions rin/editor/composer.json
Original file line number Diff line number Diff line change
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.1.3",
"time": "2017-07-02",
"version": "0.1.4",
"time": "2017-07-06",
"license": "GPL-2.0",
"authors": [
{
Expand Down
16 changes: 9 additions & 7 deletions rin/editor/event/main_listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public function initialize_rceditor($event, $eventname)
$bbcode_disp_array = array();
$rce_default_noperm_bbcode = array();

$sql = 'SELECT display_on_posting, bbcode_tag
$sql = 'SELECT display_on_posting, bbcode_tag, bbcode_helpline
FROM ' . BBCODES_TABLE . '';

if ((int)$this->config['RCE_cache']) {
Expand All @@ -196,7 +196,7 @@ public function initialize_rceditor($event, $eventname)
$rce_default_noperm_bbcode[$row['bbcode_tag']] = $row['bbcode_tag'];
}
else if (!isset($rce_default_bbcode[$row['bbcode_tag']]) && $row['display_on_posting']) {
$bbcode_disp_array[$row['bbcode_tag']] = $row['bbcode_tag'];
$bbcode_disp_array[$row['bbcode_tag']] = $row['bbcode_helpline'];
}
}
else {
Expand All @@ -206,13 +206,13 @@ public function initialize_rceditor($event, $eventname)
}
}

foreach ($bbcode_disp_array as $bbcode_disp_array_name)
foreach ($bbcode_disp_array as $bbcode_disp_array_name => $bbcode_disp_array_value)
{
if (substr($bbcode_disp_array_name, -1) == "=") {
$this->template->assign_block_vars('RCE_RULES_DES', array('rule' => rtrim($bbcode_disp_array_name, '=')));
$this->template->assign_block_vars('RCE_RULES_DES', array('rule' => rtrim($bbcode_disp_array_name, '='), 'help' => $bbcode_disp_array_value));
}
else {
$this->template->assign_block_vars('RCE_RULES', array('rule' => $bbcode_disp_array_name));
$this->template->assign_block_vars('RCE_RULES', array('rule' => $bbcode_disp_array_name, 'help' => $bbcode_disp_array_value));
}
}

Expand Down Expand Up @@ -255,10 +255,10 @@ public function initialize_rceditor($event, $eventname)
while ($row = $this->db->sql_fetchrow($result))
{
if (intval($row['display_on_posting'])) {
$this->template->assign_block_vars('RCE_EMOTICONS', array('code' => ' '.$this->htmlspecialchars_uni($row['code']).' ', 'url' => $this->root_path . $this->config['smilies_path'] . '/' . $row['smiley_url'], 'name' => $row['emotion']));
$this->template->assign_block_vars('RCE_EMOTICONS', array('code' => $this->htmlspecialchars_uni($row['code']), 'url' => $this->root_path . $this->config['smilies_path'] . '/' . $row['smiley_url'], 'name' => $row['emotion']));
}
else {
$this->template->assign_block_vars('RCE_EMOTICONS_PLUS', array('code' => ' '.$this->htmlspecialchars_uni($row['code']).' ', 'url' => $this->root_path . $this->config['smilies_path'] . '/' . $row['smiley_url'], 'name' => $row['emotion']));
$this->template->assign_block_vars('RCE_EMOTICONS_PLUS', array('code' => $this->htmlspecialchars_uni($row['code']), 'url' => $this->root_path . $this->config['smilies_path'] . '/' . $row['smiley_url'], 'name' => $row['emotion']));
}
}

Expand All @@ -285,6 +285,7 @@ public function initialize_rceditor($event, $eventname)
'RCE_DES_NOPOP' => $this->config['RCE_desnopop'],
'RCE_PARTIAL' => $this->config['RCE_partial'],
'RCE_SELTEXT' => $this->config['RCE_seltxt'],
'RCE_RMV_COLOR' => $this->config['RCE_rmv_acp_color'],
'RCE_ROOT_PATH' => $this->root_path,
'RCE_SMILEY_PATH' => $this->root_path . $this->config['smilies_path'] . '/',
'RCE_MAX_NAME_CARACT' => $this->config['max_name_chars'],
Expand All @@ -295,6 +296,7 @@ public function initialize_rceditor($event, $eventname)
'RCE_URL_STATUS' => $url_status,
'RCE_FLASH_STATUS' => $flash_status,
'RCE_QUOTE_STATUS' => $quote_status,
'RCE_USER_LANGUAGE' => $this->user->data['user_lang'],
));
}

Expand Down
2 changes: 2 additions & 0 deletions rin/editor/language/en/rce.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@
'RCE_PARTIAL_DESC' => 'Set to yes if you want enable Partial Mode feature.<br /><strong>Ps.</strong> This feature does not convert quote tag and code tag in WYSIWYG style like in Xenforo.',
'RCE_SELTXT_TITLE' => 'Do not replace selected text',
'RCE_SELTXT_DESC' => 'Set to yes if you do not want that selected text is replaced when the custom button is triggered.<br /><strong>Ps.</strong> Enabling this function may result in some bugs.',
'RCE_RMV_ACP_COLOR_TITLE' => 'Remove ACP Color Picker',
'RCE_RMV_ACP_COLOR_DESC' => 'Set to yes if you want remove acp color picker.',
'RCE_CACHE_TITLE' => 'Cache',
'RCE_CACHE_DESC' => 'Set the cache time in seconds. Set 0 to disable this function. Max value allowed is 86400.<br /><strong>Ps.</strong> After fully configured it is strongly recommended to use the cache to not inhibit performance.',
'RCE_IMGUR_TITLE' => 'Imgur',
Expand Down
1 change: 1 addition & 0 deletions rin/editor/migrations/add_module.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public function update_data()
array('config.add', array('RCE_seltxt', 1)),
array('config.add', array('RCE_imgurapi', '')),
array('config.add', array('RCE_skin', 'moonocolor')),
array('config.add', array('RCE_rmv_acp_color', 0)),
array('config_text.add', array('RCE_bbcode_permission', '')),

// Add a parent module (ACP_DEMO_TITLE) to the Extensions tab (ACP_CAT_DOT_MODS)
Expand Down
Loading

0 comments on commit debb149

Please sign in to comment.