In this article, I will show simple code that allow to replace linked content with other content selected by the Editor. When deleting content whose references are used by other content, the Editor is shown a dialog box with a list of references. The Editor has the option to visit the page or block where the deleted content is used. However, it would be much more convenient to be able to replace the deleted content with another content selected from the list of pages.