[wp-trac] [WordPress Trac] #61237: When Editor becomes an iframe, relative path content is not displayed correctly

WordPress Trac noreply at wordpress.org
Fri May 17 07:31:40 UTC 2024


#61237: When Editor becomes an iframe, relative path content is not displayed
correctly
--------------------------+-----------------------------
 Reporter:  sawanoboly    |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 The editor canvas becomes an iframe (blob) under certain conditions, but
 there is a tag I would like to see added to the embedded html generated
 when this happens.

 In my environment, when adding images to an article, I sometimes use
 relative URLs instead of absolute URLs.
 In that case, the image in the iframe cannot be previewed.

 To solve this problem, you need to add a base tag to the header part of
 the html in the iframe.

 Here is an example


 {{{
 <iframe>
 <head>
 ...
   <base href="{WP_HOME_URL}" />
 </head>
 <body>
 ...

 </iframe>
 }}}


 I issued a similar question below, but I heard Trac is better, so I'm
 posting it back here.

 https://wordpress.org/support/topic/when-editor-becomes-an-iframe-
 relative-path-content-is-not-displayed-correctly/


 Please consider this.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61237>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list