Skip to content

Instantly share code, notes, and snippets.

/**
* @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* Minor edits 2019 - Diego Doná
* For licensing, see LICENSE.md.
*/
export default function Base64UploaderPlugin( editor ) {
editor.plugins.get( 'FileRepository' ).createUploadAdapter = ( loader ) => {
// Configure the URL to the upload script in your back-end here!
return new UploadAdapter(loader, editor.t);
@lesstif
lesstif / nginx-with-tls13-compile.sh
Last active July 12, 2024 00:36
openssl 1.1 & nginx compile script for TLS 1.3 support on RHEL/CentOS 7
#!/bin/bash
## nginx
NGINX=nginx-1.19.4.tar.gz
if [ ! -f "${NGINX}" ];then
wget https://nginx.org/download/${NGINX}
fi
ND=$(basename $NGINX .tar.gz)