Hi!
I’m struggling to adjust image pasting behavior in writer to make it function like in Word.
I’ve configured image pasting to be “As Character” by default, but when I paste image is selected and I can’t continue typing without pressing Esc or click somewhere in document.
Does someone have any idea how to disable image selection after pasting?
If you paste an image, it will be posted as PNG so no information from the image is lost. If the original is jpeg then it could dramatically increase the file size of the document.
You are better advised to use either Insert - Image or to drag the image from your file manager. The original file (although not the name) will be embedded into the document in its original format and size.
In the same way that you cannot continue typing in another paragraph without pressing the Enter key
the natural way to link actions is to use macros …
simpler approach → Recording a Macro
which gives sth like :
sub PasteAndEscape
dim document as object
dim dispatcher as object
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())
dispatcher.executeDispatch(document, ".uno:Escape", "", 0, Array())
End Sub