Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
TeamSite
TeamSite, LiveSite and OpenDeploy
Javascript error when REMOVE an item using X button while the item is SHRUNK
Migrateduser
Hi,
If i try to REMOVE an item using X button while the item is Expanded, its removed Fine.
But if I REMOVE an item using X button while the item is SHRUNK, it gives javascript error like attached pic.
NB-These items have TinyMce sub-elements inside them.
following is snipped of my delete function in the dc_action.js file
----------------------------------------------------------------
function replicantDelete(containerItem, replicantItem)
{
var repl = formDocument.getElementById("replicant_instance_" + replicantItem.instanceID);
var container = formDocument.getElementById("body_" + containerItem.instanceID);
if (!repl || !container){
return;
}
var items = new Array();
items.push(replicantItem);
tinymceItemsForRepositioning = new Array();
getItemLeafNode(items);
for(var i=0; i {
var editor = tinymceItemsForRepositioning
.getEditor();
editor.removeEditorControl();
}
--------
Please help!
Find more posts tagged with
Comments
There are no comments yet