hi kenneth
right now my problem is......
i try not allow the user to add new layer when one of the layer in cute editor panel is selected....
i try to control like this
var str = getSelectedHTML(); where the getSelectedHTML() function is follow your previous post
if(str.toLowerCase().substring(0,4)!='<div')
{
addInput();
}
else
{
alert(
'Please make sure that no text is selected !');
}
return false;
}
but it still will replace selected layer with new layer....
can u help me in this ?
thanks