jodit
Version:
Jodit is an awesome and useful wysiwyg editor with filebrowser
16 lines (15 loc) • 473 B
JavaScript
/*!
* Jodit Editor (https://xdsoft.net/jodit/)
* Released under MIT see LICENSE.txt in the project root for license information.
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
*/
/**
* @module helpers/utils
*/
import { globalWindow } from "../../constants.js";
export const completeUrl = (url) => {
if (globalWindow.location.protocol === 'file:' && /^\/\//.test(url)) {
url = 'https:' + url;
}
return url;
};