Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Javascript error when REMOVE an item using X button while the item is SHRUNK
ajayrc
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
Adam Stoller
The quick solution - train users to expand before deleting.
The long solution - file a bug with Support and see if you can get a fix from them.
The longer solution - file a bug with Support and spend a bunch of time debugging the javascript code in the product yourself.