trichview.com

trichview.support




Re: HTML links in table content


Return to index


Author

Message

Sergey Tkachenko

Posted: 01/08/2003 20:06:44


If inplace editor is active, selection is always inside it.

So the code is simple:


editor := rve.TopLevelEditor;

editor.ApplyTextStyle(...) // or ApplyStyleConversion

editor.GetSelectionBounds(selStart, startOffs, selEnd, endOffs, True);

if selStart<0 then

  exit;

if startOffs>=editor.GetOffsAfterItem(selStart) then

  inc(selStart);

if endOffs<=editor.GetOffsBeforeItem(selEnd) then

  dec(selEnd);

for i := selStart to selEnd do

  // process selected items


Or use RichViewActions:

http://www.trichview.com/resources/actions/


>

> That works as expected. The problem is setting the ItemTag in the first

place.

> At the moment I have to loop throgh all items to find any table with a

selected

> cell then use the InPlaceEditor for that cell to set the ItemTag..., see

> the code snip below. I will also have to extend this to cope with nested

> tables, is there a better way?






Powered by ABC Amber Outlook Express Converter