Skip to content

Commit

Permalink
Merge branch '5.0-dev' into dark-switch
Browse files Browse the repository at this point in the history
  • Loading branch information
bembelimen committed Nov 1, 2023
2 parents 124c009 + a53285b commit 3b7b0f2
Show file tree
Hide file tree
Showing 8 changed files with 21 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,16 @@ hosts:
openldap: 127.0.0.1

services:
- mysql
- iis

before_test:
# Run openldap docker image
- ps: docker pull bitnami/openldap:2.6.3
- ps: docker run --rm --name openldap --publish 1389:1389 --publish 1636:1636 -v ${pwd}\tests\certs:/certificates --env LDAP_ADMIN_USERNAME=admin --env LDAP_ADMIN_PASSWORD=adminpassword --env LDAP_USERS=customuser --env LDAP_PASSWORDS=custompassword --env LDAP_ENABLE_TLS=yes --env LDAP_TLS_CERT_FILE=/certificates/openldap.crt --env LDAP_TLS_KEY_FILE=/certificates/openldap.key --env LDAP_TLS_CA_FILE=/certificates/CA.crt --env BITNAMI_DEBUG=true --env LDAP_CONFIG_ADMIN_ENABLED=yes --env LDAP_CONFIG_ADMIN_USERNAME=admin --env LDAP_CONFIG_ADMIN_PASSWORD=configpassword -d bitnami/openldap:2.6.3
# Database setup for MySQL via PowerShell tools
- ps: Start-Service MySQL80
- >
"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -u root -p"Password12!" -e "CREATE DATABASE IF NOT EXISTS test_joomla;"
"C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -u root -p"Password12!" -e "CREATE DATABASE IF NOT EXISTS test_joomla;"
# Wait till slapd has started
- ps: |
$Counter=0
Expand Down
5 changes: 3 additions & 2 deletions administrator/components/com_users/tmpl/users/modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
<form action="<?php echo Route::_('index.php?option=com_users&view=users&layout=modal&tmpl=component&groups=' . $input->get('groups', '', 'BASE64') . '&excluded=' . $input->get('excluded', '', 'BASE64')); ?>" method="post" name="adminForm" id="adminForm">
<?php if (!$userRequired) : ?>
<div>
<button type="button" class="btn btn-primary button-select" data-user-value="0" data-user-name="<?php echo $this->escape(Text::_('JLIB_FORM_SELECT_USER')); ?>"
data-user-field="<?php echo $this->escape($field); ?>"><?php echo Text::_('JOPTION_NO_USER'); ?></button>&nbsp;
<button type="button" class="btn btn-primary button-select"
data-content-select data-content-type="com_users.user" data-id="" data-name=""
data-user-value="" data-user-name="" data-user-field="<?php echo $this->escape($field); ?>"><?php echo Text::_('JOPTION_NO_USER'); ?></button>&nbsp;
</div>
<?php endif; ?>
<?php echo LayoutHelper::render('joomla.searchtools.default', ['view' => $this]); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
* @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org>
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
// @TODO: remove the specific conditional on plg_system_shortcut/js/shortcut.es6.js when this moves to JoomlaDialog
window.tinymce.PluginManager.add('joomlaHighlighter', (editor) => {
const setContent = (html) => {
editor.focus();
Expand Down
7 changes: 7 additions & 0 deletions build/media_source/plg_system_shortcut/js/shortcut.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@
if (target.type === 'checkbox') {
return true;
}

// Ignore TinyMCE joomlaHighlighter plugin,
// @TODO: remove this when the joomlaHighlighter plugin will use JoomlaDialog
if (target.classList.contains('tox-textarea-wrap') && target.closest('.joomla-highlighter-dialog')) {
return false;
}

// Default hotkeys filter behavior
return !(target.isContentEditable || tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA');
};
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
"shepherd.js": "^11.2.0",
"short-and-sweet": "^1.0.4",
"skipto": "^4.1.7",
"tinymce": "^6.7.0",
"tinymce": "^6.7.1",
"vue": "3.2.45",
"vue-focus-lock": "^2.0.5",
"vuex": "^4.1.0",
Expand Down
4 changes: 2 additions & 2 deletions plugins/editors/tinymce/src/PluginTraits/DisplayTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -464,10 +464,10 @@ public function display(string $name, string $content = '', array $attributes =

if ($levelParams->get('newlines')) {
// Break
$scriptOptions['force_br_newlines'] = true;
$scriptOptions['newline_behavior'] = 'invert';
} else {
// Paragraph
$scriptOptions['force_br_newlines'] = false;
$scriptOptions['newline_behavior'] = 'default';
$scriptOptions['forced_root_block'] = 'p';
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/editors/tinymce/tinymce.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<extension type="plugin" group="editors" method="upgrade">
<name>plg_editors_tinymce</name>
<version>6.7.0</version>
<version>6.7.2</version>
<creationDate>2005-08</creationDate>
<author>Tiny Technologies, Inc</author>
<authorEmail>N/A</authorEmail>
Expand Down

0 comments on commit 3b7b0f2

Please sign in to comment.