在上传完有图片和文字的文章后,浏览时只能看到图片看不到图片,看源码原来图片是这样保存的显示的
<img height="\"20\"" width="\"20\"" title="\"devil\"" src="\"http://localhost/test/www/ckeditor/plugins/smiley/images/devil_smile.gif\"" alt="\"devil\"">
为啥呢 如何改变呢 望各位大侠指导
<img height="\"20\"" width="\"20\"" title="\"devil\"" src="\"http://localhost/test/www/ckeditor/plugins/smiley/images/devil_smile.gif\"" alt="\"devil\"">
为啥呢 如何改变呢 望各位大侠指导
<img height="\"20\"" width="\"20\"" title="\"devil\"" src="\"http://localhost/test/www/ckeditor/plugins/smiley/images/devil_smile.gif\"" alt="\"devil\"">
<textarea cols="80" id="cont" name="cont" rows="30"><?= htmlspecialchars($content) ?></textarea>
<script type="text/javascript">
var editor = CKEDITOR.replace( 'cont',{skin : 'v2'});
CKFinder.setupCKEditor( editor, '/ckfinder/' );
function BrowseServer()
{
// You can use the "CKFinder" class to render CKFinder in a page:
var finder = new CKFinder() ;
finder.basePath = '/ckfinder/' ; // The path for the installation of CKFinder (default = "/ckfinder/").
finder.selectActionFunction = SetFileField ;
finder.popup() ;
}// This is a sample function which is called when a file is selected in CKFinder.
function SetFileField( fileUrl )
{
document.getElementById( 'images' ).value = fileUrl ;
}
</script>