1
我正在爲富文本框使用tinymce,但是我無法將圖像顯示到數據庫和數據庫中。富文本框圖像不顯示
我在做什麼錯? 我使用這個腳本也:
<script type="text/javascript" src="tinymce/js/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinymce.init({
selector: "textarea",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor moxiemanager"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
toolbar2: "print preview media | forecolor backcolor emoticons",
image_advtab: true,
templates: [
{title: 'Test template 1', content: 'Test 1'},
{title: 'Test template 2', content: 'Test 2'}
]
});
</script>
你會plz詳細說明嗎? – Android
在base64中編碼圖像將爲您提供包含可轉換爲圖像的ASCII字符的字符串。請參閱:http://en.wikipedia.org/wiki/Base64 – Thariama
我已經$ sql =「INSERT INTO posts(subject,content,category,post_date) \t values('$ subject','$ content',' $類別」,NOW())「;在內容中,我在該屬性中使用了豐富的文本框(tinymce) – Android