Skip to content

Extract inline image from page #870

Answered by jansenbe
Nevinia210 asked this question in Q&A
Discussion options

You must be logged in to vote

@Nevinia210 : when you load the page in question as an IPage you'll see that the content of a text part having inline images contains references to 'hidden' image web parts (e.g. data-instance-id="8a375288-72a7-4784-9704-dd45c478d37c") from below sample. If you then check the IPage controls you can locate the web part and get it's properties via the PropertiesJson property, which tells you the image via it's ids.

If you cast the control to IPageWebPart using the HtmlPropertiesData property will also give you the needed URL:

<p>Before inline images</p>
<div tabindex="-1" data-cke-widget-wrapper="1" data-cke-filter="off"
    class="cke_widget_wrapper cke_widget_block cke_widget_inlineimag…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Nevinia210
Comment options

Answer selected by Nevinia210
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants