我需要vspace,hspace或对齐图像,而不是在tinymce 3.x的advimage上找到.我尝试在tinymce 4.x上放置advimage插件但是错误.
我试着这一步
"img[!src|border:0|alt|title|width|height|style]a[name|href|target|title|onclick]"到extended_valid_elements选项.我从本教程得到:
那一步还是不行......
抱歉,我还是 dropzone 的新手,我需要在文件成功上传后从 Dropzone JS 创建删除按钮,我尝试使用
if(typeof Dropzone != 'undefined')
{
Dropzone.autoDiscover = true;
$(".dropzone[action]").each(function(i, el)
{
$(el).dropzone();
});
Dropzone.createElement("<button>Remove file</button>");
}
Run Code Online (Sandbox Code Playgroud)
删除按钮仍然没有显示在缩略图的底部。我的页面 :
<form action="data/upload-file.php" class="dropzone"></form>
Run Code Online (Sandbox Code Playgroud)
我的 PHP 上传文件
<?php
header('Content-Type: application/json');
#$errors = mt_rand(0,100)%2==0; // Random response (Demo Purpose)
$errors = false;
$resp = array(
);
# Normal Response Code
if(function_exists('http_response_code'))
http_response_code(200);
# On Error
if($errors)
{
if(function_exists('http_response_code'))
http_response_code(400);
$resp['error'] = "Couldn't upload file, reason: ~";
}
echo json_encode($resp);
Run Code Online (Sandbox Code Playgroud)