I need to get the current PostID. I think in the function the postID is not existing yet. (Because save pre ...)
add_filter('content_save_pre', 'getImageUrlOutOfContent', 10, 1);
Am I right? How I can get the postID? Is there a better hook? I am updating the content (text) and uploading and adding a postImage.