Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter leobsf

    (@leobsf)

    It might be a conflict with another plugin. But not sure which one.

    Thread Starter leobsf

    (@leobsf)

    The preview inside the block editor is correct but when i am in the preview, the default value is used instead of what i entered

    Thread Starter leobsf

    (@leobsf)

    Sure , it is super simple:

    
    [
        {
            "id": 1173,
            "title": "ScastieEmbed",
            "icon": "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<rect opacity=\"0.25\" width=\"15\" height=\"15\" rx=\"4\" transform=\"matrix(-1 0 0 1 22 7)\" fill=\"currentColor\" \/>\n<rect width=\"15\" height=\"15\" rx=\"4\" transform=\"matrix(-1 0 0 1 17 2)\" fill=\"currentColor\" \/>\n<\/svg>\n",
            "keywords": [
                "scastie"
            ],
            "slug": "lazyblock\/scastie-embed",
            "description": "Scastie block",
            "category": "widgets",
            "category_label": "widgets",
            "supports": {
                "customClassName": true,
                "anchor": false,
                "align": [
                    "wide",
                    "full"
                ],
                "html": false,
                "multiple": true,
                "inserter": true
            },
            "ghostkit": {
                "supports": {
                    "spacings": false,
                    "display": false,
                    "scrollReveal": false
                }
            },
            "controls": {
                "control_250b7742ac": {
                    "type": "text",
                    "name": "scastie_id",
                    "default": "abc",
                    "label": "scastieID",
                    "help": "scastie ID from https:\/\/scastie.scala-lang.org\/",
                    "child_of": "",
                    "placement": "inspector",
                    "width": "100",
                    "hide_if_not_selected": "true",
                    "save_in_meta": "true",
                    "save_in_meta_name": "scastie_id",
                    "required": "true",
                    "placeholder": "Scastie ID",
                    "characters_limit": "22"
                }
            },
            "code": {
                "editor_html": "<p>Give it a try: {{scastieid}}<\/p>\n<script src=\"https:\/\/scastie.scala-lang.org\/{{scastieid}}.js\"><\/script>\n<p>Or directly on <a href=\"https:\/\/scastie.scala-lang.org\/{{scastieid}}\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Scastie<\/a>.<\/p>",
                "editor_callback": "",
                "editor_css": "",
                "frontend_html": "<p>Give it a try:<\/p>\n<script src=\"https:\/\/scastie.scala-lang.org\/<code>scastie_id</code>.js\"><\/script>\n<p>Or directly on <a href=\"https:\/\/scastie.scala-lang.org\/<code>scastie_id</code>\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Scastie (<code>scastie_id</code>)<\/a>.<\/p>",
                "frontend_callback": "",
                "frontend_css": "",
                "show_preview": "always",
                "single_output": true,
                "use_php": false
            },
            "condition": []
        }
    ]
    
Viewing 3 replies - 1 through 3 (of 3 total)