日期:2014-05-17  浏览次数:20495 次

用富文本编辑器存入数据库中的内容及图片怎么读出显示在文本框内?
我用的是js:jquery.wysiwyg.js这个js富文本编辑器,方便好用,看着简洁,我不想用fck。用wysiwyg这个遇到了问题,不能从数据库中读出图片,只能读出图片的地址和内容,怎么能读出内容又能读出图片呢,各位大哥,大姐们帮帮忙!

还想问下,fck能不能简化啊,把功能缩小点啊,尽量详细点,谢谢!

------解决方案--------------------
http://www.5hui.net/blog/article.asp?id=118
------解决方案--------------------
fck可自定义按钮,ckeditor
插入图片 

$('a[href="#insertImage"]').click(function()
{
    $('#wysiwyg').wysiwyg('insertImage', 'img/hourglass.gif');
});
添加定制的功能: 

<style type="text/css">
    .alert { background: url('img/error.gif') no-repeat !important; }
</style>
$('#wysiwyg').wysiwyg({
    controls : {
        alertSep : { separator : true },
        alert : {
            visible   : true,
            exec      : function() { alert('Hello World'); },
            className : 'alert'
        }
    }
});