<?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: Phantom visual editor is disabled in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489243#M32052</link>
    <description>&lt;P&gt;Not if you're editing within this code block outside of the Phantom UI&lt;/P&gt;

&lt;P&gt;For example, if you edit within this Custom Code block on git, and resync, Phantom UI is disabled&lt;/P&gt;

&lt;P&gt;Even if you add a commented line (which has no impact on code execution), Phantom UI is disabled&lt;/P&gt;

&lt;P&gt;Phantom has not designed the UI to work together with git on a usability level&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2020 17:23:10 GMT</pubDate>
    <dc:creator>aocvy</dc:creator>
    <dc:date>2020-04-27T17:23:10Z</dc:date>
    <item>
      <title>What causes Phantom visual editor to be disabled?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489237#M32046</link>
      <description>&lt;P&gt;When editing a playbook in the Phantom web interface something is intermittently causing the visual editor to become locked with the message "Visual Editor Disabled". &lt;BR /&gt;I can still edit the playbook with the Python Playbook Editor at the bottom. &lt;BR /&gt;What would cause the visual editor to become locked?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2022 06:03:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489237#M32046</guid>
      <dc:creator>chancerose91</dc:creator>
      <dc:date>2022-12-16T06:03:49Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom visual editor is disabled</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489238#M32047</link>
      <description>&lt;P&gt;@Chancerose91,&lt;/P&gt;

&lt;P&gt;When you edit with the Visual Playbook Editor (VPE), great care must be taken (oh and the warning message that follows) to make sure you are not selected on the canvas verses the block that you are trying to edit otherwise this happens.  If it does, you can immediately revert the playbook back to the original state, however, if you (like you stated) have continued to make changes, reverting would lose your work that you performed.  In the screenshot below, you can see the "Full Code" is selected next to function.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7727i3A9B3FEBCF6D5EA6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;When you make a change in the Python Playbook Editor with Full Code, you should see this warning above ...&lt;/P&gt;

&lt;P&gt;To revert this block, you just have to click on the revert icon in the lower right hand side as seen in the image below.&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7728iEB92490C84F51198/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;This will revert you playbook back to it's former glory.  Make sure that you select the blocks that you want to modify verses the canvas or full code view to make any custom code changes.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Sep 2019 22:32:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489238#M32047</guid>
      <dc:creator>rgresham_splunk</dc:creator>
      <dc:date>2019-09-23T22:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom visual editor is disabled</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489239#M32048</link>
      <description>&lt;P&gt;The usability of editing code in a playbook has been overlooked, and the only use case Phantom has is for non-developers using pre-designed blocks&lt;/P&gt;

&lt;P&gt;For developers, your only path is to create a custom Phantom app&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 17:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489239#M32048</guid>
      <dc:creator>aocvy</dc:creator>
      <dc:date>2020-04-23T17:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom visual editor is disabled</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489240#M32049</link>
      <description>&lt;P&gt;Actually, I think that's not 100% true. If you understand how playbooks are called.  Developers can just build the shell playbooks, send it to a git repo, know that &lt;CODE&gt;on_start()&lt;/CODE&gt; (use it like &lt;STRONG&gt;main&lt;/STRONG&gt;) and &lt;CODE&gt;on_finish()&lt;/CODE&gt; are always called... place whatever code you want in the middle of these blocks. &lt;/P&gt;

&lt;P&gt;You can choose to use the API or not, you won't have the benefit of multi-threading or other awesome capabilities without incorporating the phantom api usage in your code.   &lt;/P&gt;

&lt;P&gt;We just make it much easier for "non-coders" to quickly get an automation into motion. The part that you won't like is that your code won't run with an IDE by default.  Debugging will still be done via the phantom VPE.  &lt;/P&gt;

&lt;P&gt;We do have a few folks that have made workarounds for some of the issues you may think you are encountering. I recommend talking to our Professional Services teams on different tricks to get you going the way you would want ... or at least closer.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2020 20:48:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489240#M32049</guid>
      <dc:creator>rgresham_splunk</dc:creator>
      <dc:date>2020-04-24T20:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom visual editor is disabled</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489241#M32050</link>
      <description>&lt;P&gt;This was in response to the Phantom UI becoming disabled when you want to change code via git.&lt;/P&gt;

&lt;P&gt;As long as the beginning and end of a Phantom Block are the same, the UI should remain functional, but it does not.&lt;/P&gt;

&lt;P&gt;My guess is that, rather than  having to figure out how much of a Phantom Block has changed to ensure the UI remains functional, it's easier for Phantom just to not support it.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 04:17:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489241#M32050</guid>
      <dc:creator>aocvy</dc:creator>
      <dc:date>2020-04-27T04:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom visual editor is disabled</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489242#M32051</link>
      <description>&lt;P&gt;Always keep any custom code you may need within a single block/function inside of a playbook. Custom Function blocks work nicely for this, or you can modify the generated code within an Action, Filter, Decision, API Block. Keeping your custom code within a single block will allow you to continue using the UI builder as expected.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 17:15:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489242#M32051</guid>
      <dc:creator>cblumer_splunk</dc:creator>
      <dc:date>2020-04-27T17:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom visual editor is disabled</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489243#M32052</link>
      <description>&lt;P&gt;Not if you're editing within this code block outside of the Phantom UI&lt;/P&gt;

&lt;P&gt;For example, if you edit within this Custom Code block on git, and resync, Phantom UI is disabled&lt;/P&gt;

&lt;P&gt;Even if you add a commented line (which has no impact on code execution), Phantom UI is disabled&lt;/P&gt;

&lt;P&gt;Phantom has not designed the UI to work together with git on a usability level&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 17:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489243#M32052</guid>
      <dc:creator>aocvy</dc:creator>
      <dc:date>2020-04-27T17:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom visual editor is disabled</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489244#M32053</link>
      <description>&lt;P&gt;The original question was around editing playbook code within the Phantom UI.&lt;/P&gt;

&lt;P&gt;What you've described is by design.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 17:53:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489244#M32053</guid>
      <dc:creator>cblumer_splunk</dc:creator>
      <dc:date>2020-04-27T17:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom visual editor is disabled</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489245#M32054</link>
      <description>&lt;P&gt;what were the design limitations to have this work better?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 18:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489245#M32054</guid>
      <dc:creator>aocvy</dc:creator>
      <dc:date>2020-04-27T18:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom visual editor is disabled</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489246#M32055</link>
      <description>&lt;P&gt;Out of band content changes for custom code are validate to ensure code injections don't occur.  As @cblumer_splunk  stated, from my understanding. If you don't want to use the UI, then you can use the global block and write your own functions to your hearts content. &lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 22:52:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489246#M32055</guid>
      <dc:creator>rgresham_splunk</dc:creator>
      <dc:date>2020-04-27T22:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom visual editor is disabled</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489247#M32056</link>
      <description>&lt;P&gt;But you can have the playbook run any code &lt;/P&gt;

&lt;P&gt;I don't think it's really validating the code, otherwise adding one commented out line should have remained valid, and not disable the UI? Since a commented line shouldn't be a code injection&lt;/P&gt;

&lt;P&gt;The thing is, we want to use the UI, and we want to use custom code without the UI being disabled, as long as we've kept the proper structure of the custom code block, the code inside should not matter&lt;/P&gt;</description>
      <pubDate>Tue, 28 Apr 2020 06:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/What-causes-Phantom-visual-editor-to-be-disabled/m-p/489247#M32056</guid>
      <dc:creator>aocvy</dc:creator>
      <dc:date>2020-04-28T06:32:38Z</dc:date>
    </item>
  </channel>
</rss>

