Files
4eb0da 0f869b06e0 Fixes
commit_hash:73f0d28d90cd47e1904784b9efc5ff6a788d7cc8
2026-04-01 11:41:02 +03:00
..
2026-04-01 11:41:02 +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
2026-03-05 19:47:20 +03:00
2024-09-09 17:23:57 +03:00
2026-03-17 10:35:31 +03:00
2026-03-17 10:35:31 +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
2026-03-17 10:35:31 +03:00
2025-11-19 14:32:34 +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();