<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Custom HTML in New Map Viewer in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1126098#M43381</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/106199"&gt;@SFM_TravisBott&lt;/a&gt;&amp;nbsp;Thanks for the post - after making changes to the HTML, select the Source button again to preview your changes and save.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/189832"&gt;@mpboyle&lt;/a&gt;&amp;nbsp;style is a supported attribute for the td tag (&lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm" target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm&lt;/A&gt;), can I get a case started with support to investigate this further?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround can you try including a span element within the td element and specify the desired color there?&lt;/P&gt;&lt;P&gt;&amp;lt;td style="text-align:center;"&amp;gt;&lt;BR /&gt;&amp;lt;span style="color:#d98a81;"&amp;gt;&amp;lt;strong&amp;gt;Species&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 00:00:42 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-15T00:00:42Z</dc:date>
    <item>
      <title>Custom HTML in New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1125467#M43337</link>
      <description>&lt;P&gt;I saw the most recent update to the new Map Viewer in AGO supports custom HTML, however I've noticed that in-line styling doesn't seem to work as expected if I'm using a table element.&lt;/P&gt;&lt;P&gt;Below is an example.&amp;nbsp; If I try to add a second style to the in-line style, setting the font color to red, this style does not hold and disappears when I go back to look at the HTML view.&lt;/P&gt;&lt;P&gt;1 - Add the style&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_0-1639413656588.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29547iC68F5267441E1260/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mpboyle_0-1639413656588.png" alt="mpboyle_0-1639413656588.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2 - View the custom pop-up --- font color is not red.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_1-1639413745314.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29548i2F0E5CB471EECD79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mpboyle_1-1639413745314.png" alt="mpboyle_1-1639413745314.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;3 - Look at the custom HTML again --- the color tag is no longer there.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_2-1639413807168.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29549iB3A3800183CD5D8C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mpboyle_2-1639413807168.png" alt="mpboyle_2-1639413807168.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does seem to work as expected for other elements though, for example, divs, as shown below.&amp;nbsp; Is there any reason that table are treated differently?&amp;nbsp; Is it because they are automatically placed within a &amp;lt;figure&amp;gt; element?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_3-1639414067882.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29550i8342A184D287528A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mpboyle_3-1639414067882.png" alt="mpboyle_3-1639414067882.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 16:49:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1125467#M43337</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2021-12-13T16:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Custom HTML in New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1125535#M43344</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/189832"&gt;@mpboyle&lt;/a&gt;&amp;nbsp;are you able to actually&amp;nbsp;save edits in&amp;nbsp;the HTML editor in the New Map Viewer? I found your thread because I am trying to update maps to the new viewer and don't seem to have the option to save edits in the HTML mode when configuring pop-ups. I can manipulate the text but the save button is greyed out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 18:55:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1125535#M43344</guid>
      <dc:creator>SFM_TravisBott</dc:creator>
      <dc:date>2021-12-13T18:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: Custom HTML in New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1126098#M43381</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/106199"&gt;@SFM_TravisBott&lt;/a&gt;&amp;nbsp;Thanks for the post - after making changes to the HTML, select the Source button again to preview your changes and save.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/189832"&gt;@mpboyle&lt;/a&gt;&amp;nbsp;style is a supported attribute for the td tag (&lt;A href="https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm" target="_blank"&gt;https://doc.arcgis.com/en/arcgis-online/reference/supported-html.htm&lt;/A&gt;), can I get a case started with support to investigate this further?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround can you try including a span element within the td element and specify the desired color there?&lt;/P&gt;&lt;P&gt;&amp;lt;td style="text-align:center;"&amp;gt;&lt;BR /&gt;&amp;lt;span style="color:#d98a81;"&amp;gt;&amp;lt;strong&amp;gt;Species&amp;lt;/strong&amp;gt;&amp;lt;/span&amp;gt;&lt;BR /&gt;&amp;lt;/td&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 00:00:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1126098#M43381</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-15T00:00:42Z</dc:date>
    </item>
    <item>
      <title>Re: Custom HTML in New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1126348#M43396</link>
      <description>&lt;P&gt;@Anonymous User&amp;nbsp;:&lt;/P&gt;&lt;P&gt;Below are some screenshots from a test:&lt;/P&gt;&lt;P&gt;1) The custom HTML shown in Notepad++ for readability&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_0-1639590003766.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29770i1C653F864C32C899/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mpboyle_0-1639590003766.png" alt="mpboyle_0-1639590003766.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) The custom HTML copy/pasted into the pop-up (bracketed in green)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_1-1639590082629.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29771i49FFF98751D312A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mpboyle_1-1639590082629.png" alt="mpboyle_1-1639590082629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3) If I click OK to accept the pop-up, then go back in to edit the custom HTML, this is what I see, a couple things of note:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The table is automatically wrapped in a &amp;lt;figure&amp;gt; element&lt;/LI&gt;&lt;LI&gt;The "color: red" attribute from the first &amp;lt;td&amp;gt; element is missing&lt;/LI&gt;&lt;LI&gt;The "font-weight: bold" attribute has been automatically re-assigned to &amp;lt;strong&amp;gt;&lt;/LI&gt;&lt;LI&gt;The "color: yellow" attribute from the second &amp;lt;td&amp;gt; element is missing&lt;/LI&gt;&lt;LI&gt;The "font-size: 18px" attribute from the second &amp;lt;td&amp;gt; element is missing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mpboyle_2-1639590154463.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/29772i920328F4DB408539/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mpboyle_2-1639590154463.png" alt="mpboyle_2-1639590154463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 17:46:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1126348#M43396</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2021-12-15T17:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Custom HTML in New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1126924#M43430</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/189832"&gt;@mpboyle&lt;/a&gt;&amp;nbsp;- here are answers to your above questions from&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/24853"&gt;@LaurenBallantyne&lt;/a&gt;&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;The table is automatically wrapped in a &amp;lt;figure&amp;gt; element&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;This is expected, since the rich text editor in Map Viewer meets HTML5 standards and conventions. &amp;lt;figure&amp;gt; is used to define self-contained content, and you will most commonly see &amp;lt;figure&amp;gt; wrapped around all tables and images.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The "color: red" attribute from the first &amp;lt;td&amp;gt; element is missing&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;This is a bug that we’re looking to fix for 10.1, but for now the workaround is to specify the &amp;lt;td&amp;gt; or &amp;lt;th&amp;gt; text color in a &amp;lt;span&amp;gt; tag around the cell value&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The "font-weight: bold" attribute has been automatically re-assigned to &amp;lt;strong&amp;gt;&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;This is expected behavior with the Map Viewer’s text editor. The text will still appear bold with &amp;lt;strong&amp;gt;.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The "color: yellow" attribute from the second &amp;lt;td&amp;gt; element is missing&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Same as the above for style = “color:red” on &amp;lt;td&amp;gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;The "font-size: 18px" attribute from the second &amp;lt;td&amp;gt; element is missing&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;This is a bug that we’re aiming to address for the next release, just like the color on &amp;lt;td&amp;gt; and &amp;lt;th&amp;gt;. The workaround is also to wrap the &amp;lt;td&amp;gt; or &amp;lt;th&amp;gt; text in &amp;lt;span&amp;gt; and apply the font-size within &amp;lt;span&amp;gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;-Peter&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 20:54:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1126924#M43430</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-16T20:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom HTML in New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1161373#M45362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/189832"&gt;@mpboyle&lt;/a&gt;&amp;nbsp;,&amp;nbsp;@Anonymous User&amp;nbsp; - I am having some trouble with the HTML editor since the March 2022 ArcGIS Online update.&amp;nbsp; When I try to edit the popup using the HTML editor, the 'OK' to save does not work - it just sits there greyed out.&amp;nbsp; Are either of you experiencing this?&lt;/P&gt;&lt;P&gt;thanks-&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 20:39:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1161373#M45362</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2022-04-05T20:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom HTML in New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1161380#M45364</link>
      <description>&lt;P&gt;I honestly haven't tried using the new map viewer since I encountered all the issues I was having in the custom HTML pop-up I listed above.&amp;nbsp; Any web maps I create where I want to use custom HTML in the pop-up, I use the classic map viewer.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2022 21:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1161380#M45364</guid>
      <dc:creator>mpboyle</dc:creator>
      <dc:date>2022-04-05T21:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Custom HTML in New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1162195#M45431</link>
      <description>&lt;P&gt;ok thanks Matt.&amp;nbsp; Can I ask if you have had any success trying to use html tags in the new rich text element?&amp;nbsp; seems something simple like this:&lt;/P&gt;&lt;P&gt;var email = $feature.email;&lt;BR /&gt;return {&lt;BR /&gt;type : 'text',&lt;BR /&gt;text : `&amp;lt;a href=mailto:${email}&amp;gt;Send email&amp;lt;/a&amp;gt;` //this property supports html tags&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;doesn't seem to work, at least for me.&lt;/P&gt;&lt;P&gt;@Anonymous User&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 16:34:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1162195#M45431</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2022-04-07T16:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom HTML in New Map Viewer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1162199#M45432</link>
      <description>&lt;P&gt;Geez, as soon as I posted this I discovered that the element was only erroring out in the Test and Console Log.&amp;nbsp; It works as expected in the popup . . .&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 16:40:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/custom-html-in-new-map-viewer/m-p/1162199#M45432</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2022-04-07T16:40:30Z</dc:date>
    </item>
  </channel>
</rss>

