Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

TypeDescription
Object | StringBody 모델 JSON Object 또는 JSON String.


Example:

Image RemovedImage Added

Code Block
languagejs
themeEmacs
var model = editor.getBodyModelJSONForAI();
var model = editor.getBodyModelJSONForAI(false. true);
var model = editor.getBodyModelJSONForAI(true);

...

Code Block
languagejs
themeEmacs
titletoString: truefalse, useStyle: true
{
    "type": "Body",
    "children": [
        {
            "children": [
                {
                    "text": "안녕",
                    "style": {
                        "color": {
                            "r": 128,
                            "g": 128,
                            "b": 255
                        }
                    },
                    "type": "TextRun"
                },
                {
                    "text": "하세요",
                    "style": {
                        "color": {
                            "r": 255,
                            "g": 128,
                            "b": 128
                        }
                    },
                    "type": "TextRun"
                }
            ],
            "type": "Paragraph"
        }
    ]
}

...