【发布时间】:2012-02-27 02:23:21
【问题描述】:
我正在尝试使用 jQuery 从编辑器本身外部向 WYSIWYG CLEditor 添加一些 html 标记。
到目前为止,我...
$('.add-image').click(
function()
{
theurl = $(this).text();
theimage = '<a href="' + theurl + '" class="lightbox"><img src="' + theurl + '" /></a>';
// Now What?
}
);
但是我不知道如何将字符串添加到 WYSIWYG 中,它开始让我发疯!
【问题讨论】:
标签: javascript jquery wysiwyg jwysiwyg cleditor