在上传完有图片和文字的文章后,浏览时只能看到图片看不到图片,看源码原来图片是这样保存的显示的
<img height="\"20\"" width="\"20\"" title="\"devil\"" src="\"http://localhost/test/www/ckeditor/plugins/smiley/images/devil_smile.gif\"" alt="\"devil\"">
为啥呢 如何改变呢 望各位大侠指导

解决方案 »

  1.   

    在上传完有图片和文字的文章后,浏览时只能看到文字而看不到图片,看源码原来图片是这样保存的显示的
    <img height="\"20\"" width="\"20\"" title="\"devil\"" src="\"http://localhost/test/www/ckeditor/plugins/smiley/images/devil_smile.gif\"" alt="\"devil\"">
      

  2.   

    是不是你调用的有问题,下面是我的调用代码,ckeditor和ckfinder都放在根目录,而且配置好了,关键是配置ckfinder。含有整合ckfinder和返回上传的图片路径,便于选择首选图片为幻灯片图片或者标题图片。
    <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>