Files
4eb0da da13f26348 Fix video loading
commit_hash:38fff7e024d3067e76642f03ae3f44f7ca9a7af2
2025-05-20 13:25:30 +03:00
..
2025-05-20 13:25:30 +03:00
2024-09-09 17:23:57 +03:00
2024-09-09 17:23:57 +03:00
2025-04-16 12:21:26 +03:00
2024-09-09 17:23:57 +03:00
2025-03-31 13:40:32 +03:00
2024-09-09 17:23:57 +03:00
2025-05-20 13:14:23 +03:00
2025-05-20 13:14:23 +03:00
2024-09-09 17:23:57 +03:00
2024-09-09 17:23:57 +03:00
2024-09-09 17:23:57 +03:00
2024-09-09 17:23:57 +03:00
2024-09-09 17:23:57 +03:00
2024-09-09 17:23:57 +03:00
2024-09-09 23:52:31 +03:00

DivKit Visual Editor

Install

npm i @divkitframework/visual-editor

Render editor

import '@divkitframework/visual-editor/dist/divkit-editor.css';
import { DivProEditor } from '@divkitframework/visual-editor';

const instance = DivProEditor.init({
    renderTo: document.body,
    value: JSON.stringify({
        "card": {
            "log_id": "test",
            "states": [{
                "state_id": 0,
                "div": {
                    "type": "container",
                    "orientation": "overlap",
                    "items": [{
                        "type": "text",
                        "text": "Hello world"
                    }]
                }
            }]
        }
    })
});

// ...

instance.getValue();