Support » Plugin: CodeMirror Blocks » CodeMirror blocks in AJAX request

  • Resolved matteofeduzi


    Hi, I would like to use your plugin within an AJAX request.

    Practically I recall the article in a request AJAX proposes it according to the link (title of the article) selected in the bar on the left.

    I add the following code to make a test block work outside AJAX:

    <script type='text/javascript' src=''></script>
    <script type='text/javascript'>var wpcm = {"plugin_url":"","assets":[{"dir":"","css":"codemirror.min.css","async":true},{"dir":"","js":"js/init.min.js?v=1579164927","css":"blocks/","differ":true}],"options":{"output":{"button":false,"button_text":"Execute"}},"view":"public"}
    <script type='text/javascript' src=''></script>

    Unfortunately this does not work for the blocks contained in the articles within the AJAX request.

    How can I go about making the various scripts and css work in the AJAX request so that the blocks are read correctly?

    Thanks so much.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.