This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<!-- Include external CSS. --> | |
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" type="text/css" /> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/codemirror.min.css"> | |
<!-- Include Editor style. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require 'PATH_TO_FROALA_SDK/lib/froala_editor.php'; | |
$response = FroalaEditor_Image::upload('/uploads/'); | |
if (is_string($response)) { | |
http_response_code(404); | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// We are a valid Joomla entry point. | |
define('_JEXEC', 1); | |
// Setup the base path related constant. | |
define('JPATH_BASE', dirname(__FILE__)); | |
// Maximise error reporting. | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// We are a valid Joomla entry point. | |
define('_JEXEC', 1); | |
// Setup the base path related constant. | |
define('JPATH_BASE', dirname(__FILE__)); | |
// Maximise error reporting. | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// We are a valid Joomla entry point. | |
define('_JEXEC', 1); | |
// Setup the base path related constant. | |
define('JPATH_BASE', dirname(__FILE__)); | |
// Maximise error reporting. | |
error_reporting(E_ALL); | |
ini_set('display_errors', 1); |