Skip to content

Commit

Permalink
Merge pull request #140 from wetfish/main
Browse files Browse the repository at this point in the history
Fix emoji support
  • Loading branch information
itsrachelfish authored Jul 14, 2023
2 parents cc0f158 + 59495d4 commit 608fe70
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions config/themes/default/Post.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function generateDays()


// Justin Nov 24 2016 - Message icons have been removed. Left in some empty containers so the style doesn't get messed up.
echo '<dt class="clear_left"></dt><dd></dd>';
echo '<dt class="clear_left"></dt><dd></dd>';


// Are you posting a calendar event?
Expand Down Expand Up @@ -538,7 +538,7 @@ function addAttachment()
', template_control_verification($context['visual_verification_id'], 'all'), '
</div>';
}

if($context['require_verification'] && $modSettings['visual_verification_type'] == 6)
{
echo '
Expand Down Expand Up @@ -631,9 +631,9 @@ function previewPost()
{
// Handle the WYSIWYG editor.
if (textFields[i] == ', JavaScriptEscape($context['post_box_name']), ' && ', JavaScriptEscape('oEditorHandle_' . $context['post_box_name']), ' in window && oEditorHandle_', $context['post_box_name'], '.bRichTextEnabled)
x[x.length] = \'message_mode=1&\' + textFields[i] + \'=\' + oEditorHandle_', $context['post_box_name'], '.getText(false).replace(/&#/g, \'&#38;#\').php_to8bit().php_urlencode();
x[x.length] = textFields[i] + \'=\' + $("#', $context['post_box_name'], '").data("sceditor").getText().replace(/&#/g, \'&#38;#\');
else
x[x.length] = textFields[i] + \'=\' + document.forms.postmodify[textFields[i]].value.replace(/&#/g, \'&#38;#\').php_to8bit().php_urlencode();
x[x.length] = textFields[i] + \'=\' + document.forms.postmodify[textFields[i]].value.replace(/&#/g, \'&#38;#\');
}
for (var i = 0, n = numericFields.length; i < n; i++)
if (numericFields[i] in document.forms.postmodify && \'value\' in document.forms.postmodify[numericFields[i]])
Expand Down
8 changes: 4 additions & 4 deletions wwwroot/Themes/default/Post.template.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function generateDays()


// Justin Nov 24 2016 - Message icons have been removed. Left in some empty containers so the style doesn't get messed up.
echo '<dt class="clear_left"></dt><dd></dd>';
echo '<dt class="clear_left"></dt><dd></dd>';


// Are you posting a calendar event?
Expand Down Expand Up @@ -538,7 +538,7 @@ function addAttachment()
', template_control_verification($context['visual_verification_id'], 'all'), '
</div>';
}

if($context['require_verification'] && $modSettings['visual_verification_type'] == 6)
{
echo '
Expand Down Expand Up @@ -631,9 +631,9 @@ function previewPost()
{
// Handle the WYSIWYG editor.
if (textFields[i] == ', JavaScriptEscape($context['post_box_name']), ' && ', JavaScriptEscape('oEditorHandle_' . $context['post_box_name']), ' in window && oEditorHandle_', $context['post_box_name'], '.bRichTextEnabled)
x[x.length] = \'message_mode=1&\' + textFields[i] + \'=\' + oEditorHandle_', $context['post_box_name'], '.getText(false).replace(/&#/g, \'&#38;#\').php_to8bit().php_urlencode();
x[x.length] = textFields[i] + \'=\' + $("#', $context['post_box_name'], '").data("sceditor").getText().replace(/&#/g, \'&#38;#\');
else
x[x.length] = textFields[i] + \'=\' + document.forms.postmodify[textFields[i]].value.replace(/&#/g, \'&#38;#\').php_to8bit().php_urlencode();
x[x.length] = textFields[i] + \'=\' + document.forms.postmodify[textFields[i]].value.replace(/&#/g, \'&#38;#\');
}
for (var i = 0, n = numericFields.length; i < n; i++)
if (numericFields[i] in document.forms.postmodify && \'value\' in document.forms.postmodify[numericFields[i]])
Expand Down

0 comments on commit 608fe70

Please sign in to comment.