1
我该怎么做?下面是自定义的控制,我们有:jwysiwyg使用自定义控件在光标处插入文本
customcontrol:{
groupIndex: 6,
visible: true,
icon: 'includes/images/controlimage.png',
custom:true,
exec: function(){
$('#editor').wysiwyg('setContent', $('#editor').val() + 'texttoinsert');
},
tooltip:"Insert text at cursor"
}
我试过其他的解决方案中插入一个文本区域的文字,但他们没有工作(无任何响应,没有错误),或者他们没有设计工作与自定义控件。