Merge branch 'staging' into 5.3-rc

This commit is contained in:
David Benque 2023-04-25 14:31:27 +01:00
commit 8d79686365
2 changed files with 10 additions and 9 deletions

View File

@ -23,15 +23,12 @@ server {
set $main_domain "your-main-domain.com";
set $sandbox_domain "your-sandbox-domain.com";
# By default CryptPad allows remote domains to embed CryptPad documents in iframes.
# This behaviour can be blocked by changing $allowed_origins from "*" to the
# sandbox domain, which must be permitted to load content from the main domain
# in order for CryptPad to work as expected.
#
# An example is given below which can be uncommented if you want to block
# remote sites from including content from your server
set $allowed_origins "*";
# set $allowed_origins "https://${sandbox_domain}";
# By default CryptPad forbids remote domains from embedding CryptPad documents in iframes.
# The sandbox domain must always be permitted in order for the platform to function.
# If you wish to enable remote embedding you may change the value below to "*"
# as per the commented value.
set $allowed_origins "https://${sandbox_domain}";
#set $allowed_origins "*";
# CryptPad's dynamic content (websocket traffic and encrypted blobs)
# can be served over separate domains. Using dedicated domains (or subdomains)

View File

@ -764,6 +764,10 @@ MessengerUI, Messages, Pages) {
$input.val(inputVal);
$input.show();
$input.focus();
if (inputVal === $input.attr('placeholder')) {
// Placeholder is the default name, select text to make editing easier
$input.select();
}
$pencilIcon.hide();
$saveIcon.show();
};