Copy link to clipboard
Copied
I have checked now multiple times:
in https://community.adobe.com/t5/framemaker/multiline-text-for-button-labels/td-p/11798809 the code is set up with 'format' javascript.
When viewed the code is briefly displayed with colours, but finally all is black
Copy link to clipboard
Copied
Just a trial
KLD_F.FindOverflowCell = function () { // ---------------------------------------------------------
/* Find and identify overflowing table cell
Arguments -
Returns true if found, else false
Called by main
Calling ???
Used in FMmngFindRepl
Reference Rick Quatro, https://community.adobe.com/t5/framemaker/finding-cell-overflow-in-table-problem-with-script/m-p/7663483
Klaus Göbel, https://community.adobe.com/t5/framemaker/view-current-cell-if-cell-overflows/m-p/11304625
History 2021-02-04 test with VSCode and ESDebugger
*/
var bFound = false, oDoc, oTable, oTtblRow, oTtblCell, oTLbeg, oTLend, oTR = undefined;
oDoc = app.ActiveDoc;
oTable = oDoc.FirstTblInDoc;
out:
while (oTable.ObjectValid ()) {
oTtblRow = oTable.FirstRowInTbl;
while (oTtblRow.ObjectValid ()) {
oTtblCell = oTtblRow.FirstCellInRow;
while (oTtblCell.ObjectValid ()) {
if (oTtblCell.Overflowed === 1) {
bFound = true;
break out;
}
oTtblCell = oTtblCell.NextCellInRow;
}
oTtblRow = oTtblRow.NextRowInTbl;
}
oTable = oTable.NextTblInDoc;
}
if (bFound) {
oTLbeg = new TextLoc(oTtblCell.FirstPgf,0);
oTLend = new TextLoc(oTtblCell.FirstPgf,Constants.FV_OBJ_END_OFFSET);
oTR = new TextRange(oTLbeg,oTLend);
oDoc.ScrollToText(oTR);
}
return oTR;
} //--- end FindOverflowCell
Copy link to clipboard
Copied
Hi Klaus,
You are correct. The code behind the link is coloured, at least for a second, and your code here is just black.
Best regards
_Winfried
Copy link to clipboard
Copied
Just now discoverd: while eidting or creating a post, the code also of the other posts is highlighted. As soon as I submit the edit/new post the highlights disappear.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I have drawn their attention to it