Files
4eb0da 01801596f3 0.4.6 changelog
commit_hash:4dbe6f28929c32e085f40049e906bc72456a10bc
2025-03-12 16:45:39 +03:00
..
2025-02-17 17:57:20 +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
2025-03-12 16:45:39 +03:00
2024-09-09 17:23:57 +03:00
2025-02-17 17:57:20 +03:00
2025-03-12 16:45:39 +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();