Hi and thank you for reading my post,
my situation is this: my code can be started at any time during writing/editing of a text document. The code then selects the whole paragraph and applies, say Italic (it is more complicated, but Italic will do for the case of this example). Then it collapses the selection and the insertion point gets to the start of the paragraph. So far so good. Only I would like to return the insertion point where it used to be when the code was invoked and I have zero ideas.
Can anybody kindly help, please?
Best,
Pavel
my situation is this: my code can be started at any time during writing/editing of a text document. The code then selects the whole paragraph and applies, say Italic (it is more complicated, but Italic will do for the case of this example). Then it collapses the selection and the insertion point gets to the start of the paragraph. So far so good. Only I would like to return the insertion point where it used to be when the code was invoked and I have zero ideas.
Can anybody kindly help, please?
Best,
Pavel