Extra Ektron Patch Release: Extra temporary P tags and spaces in 8.0.0SP1 and 7.6.6SP4 or SP3
Posted by Amy Button
on Monday, March 08, 2010
Ektron has recently released a new "Patch for a Patch" which helps resolve extra paragraphs and spaces appear when editing in 8.0.0SP1 and 7.6.6SP4 even after the patch for extra P tags has been applied. This article describes how to remove the feature that injects these temporary paragraphs and spaces.
This problem has been fixed in Ektron CMS400 version 8.0.1, however if you are using 8.0.0SP1 or 7.6.6SP3, you must first apply this patch:
Patch for extra P tags. The fix below only applies only to 8.0.0SP1 and 7.6.6SP4.
Here is the fix via ektron.com:
CAUTION: This change may make it more difficult to add new paragraphs or text at certain places within the content, for instance, at the beginning of a list item when the item is a hyperlink. Typing within the link will be easy, but it may not be possible to type outside the link. The temporary paragraphs and spaces are added by a JavaScript function that injects them to ensure the cursor may be places anywhere within the content. Without them, it may be impossible or very difficult to precisely place the cursor between some HTML tags.
Edit (after making a backup copy)
~\Workarea\ContentDesigner\ektron.selectionRange.js
Find
function ensureCursorSelectability
Add a ‘return’ as the first line, example,
Ektron.SelectionRange.ensureCursorSelectability = function ensureCursorSelectability(contentElement)
{
return;
if (!contentElement) return;
var me = this;
-------------------------------------
NOTE: As of version 8.0.1, special symbol denote where the temporary paragraphs and spaces are located. The hide when the mouse is hovered over them and become permanent when clicked. A new toolbar button is available to show or hide these elements.
Care to Comment?