我正在使用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
});
这是一个documentation
关于javascript - 使用 bootstrap-markdown 上传图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29284569/