使用 bootstrap-markdown 上传图片
Upload images with bootstrap-markdown
我正在使用 bootstrap-markdown ,当我尝试插入图像时我只能从网络插入它,有没有解决无法从本地机器上传的解决方案?
<form>
<input name="title" type="text" placeholder="Title?" />
<textarea id="myEditor" name="content" data-provide="markdown" rows="10"></textarea>
<label class="checkbox">
<input name="publish" type="checkbox"> Publish
</label>
<hr/>
<button type="submit" class="btn">Submit</button>
</form>
使用这个模块:
https://github.com/inacho/bootstrap-markdown-editor
下面是一个激活上传的例子:
$('#myEditor').markdownEditor({
imageUpload: true, // Activate the option
uploadPath: 'upload.php' // Path of the server side script that receive the files
});
我正在使用 bootstrap-markdown ,当我尝试插入图像时我只能从网络插入它,有没有解决无法从本地机器上传的解决方案?
<form>
<input name="title" type="text" placeholder="Title?" />
<textarea id="myEditor" name="content" data-provide="markdown" rows="10"></textarea>
<label class="checkbox">
<input name="publish" type="checkbox"> Publish
</label>
<hr/>
<button type="submit" class="btn">Submit</button>
</form>
使用这个模块: https://github.com/inacho/bootstrap-markdown-editor
下面是一个激活上传的例子:
$('#myEditor').markdownEditor({
imageUpload: true, // Activate the option
uploadPath: 'upload.php' // Path of the server side script that receive the files
});