iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
Hi,
We are experiencing an issue with the webtexteditor. We have a pattern where the webtexteditor is moved. We have multiple div in our page and allow users to drag and drop them to reorder the layout as desired.
When they do that, we lose the editor content and the webtexteditor stops working. We cannot type anymore in it. We created a sample to help you replicate the problem. You only have to click on the "Move div" button to replicate the issue we have.
This is a major problem for us, we absolutely need a fix for this problem this week because it is causing data loss because we lose the content that was previouly saved in the webtexteditor.
Please get back to me quickly.
Regards,
Alex
Thank you for the sent sample. I can replicate the problem in my local end. I will have this forwarded to the development team to be investigated further.
Thank you and have a nice day.
I found that whenever node is pulled from the DOM tree, the contentWindow is set to null, forcing a reload of the iframe’s content. The same thing happens on WebTextEditor where the content editor uses iframe element. This problem was caused by browser not WebTextEditor.
I’d like to suggest you a workaround. The bottom line is that to avoid losing the state of an iframe, you must not detach it or one of its ancestors. If only _rtbDiv contained an iframe and you wanted to move it before _firstChildDiv (which wouldn’t contain an iframe), then you could move _firstChildDiv after _rtbDiv instead of moving _rtbDiv before _firstChildDiv.
Following snippet code shows how to implement this by modifying click2 and moveItem function.
function moveItem(toMoveId, newPrecedingItemId) { var toMove = document.getElementById(toMoveId); var newPrecedingItem = newPrecedingItemId ? document.getElementById(newPrecedingItemId) : null; if (toMove.insertAdjacentElement) { if (newPrecedingItem != null) { if (newPrecedingItem == toMove) return; newPrecedingItem.insertAdjacentElement("beforeBegin", toMove); //newPrecedingItem.insertAdjacentElement("afterEnd", toMove); return; } document.getElementById("_parentDiv").insertAdjacentElement("afterBegin", toMove); return; } var containerDiv = newPrecedingItem ? newPrecedingItem.parentNode : document.getElementById("_parentDiv"); var followingItem = newPrecedingItem ? newPrecedingItem.nextSibling : containerCell.firstChild; if (followingItem) { containerDiv.insertBefore(toMove, followingItem); return; } containerDiv.appendChild(toMove); return; } function click2() { moveItem("_lastChildDiv", "_rtbDiv"); //moveItem("_rtbDiv", "_lastChildDiv"); return false; }
Please let me know if you have other thought.
Since the reported problem was not caused by WebTextEditor, we will treat this as enhancement. The development team still working on this case, but I’m afraid that the enhancement will take time longer.
I sent a message to your registered mailbox. Please kindly check your inbox and let me hear your response.
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname