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.getBodyModelJSONgetBodyModelJSONForAI(false. true);
var model = editor.getBodyModelJSONgetBodyModelJSONForAI(true);


Code Block
languagejs
themeEmacs
titletoString: false
{
    "idtype": "se_5a9f922e-db5a-41cf-b026-00a020125348Body",
    "typechildren": "Body", [
        {
"fromHTMLBuilder": false,     "style": {},     "children": [
                {
                    "styletext": {}"안녕",
            "children": [        "type": "TextRun"
                },
                {
                    "text": "안녕하세요.하세요",
                    "isEmojitype": false,"TextRun"
                }
   "style": {},        ],
            "idtype": "se_7e1a7f55-cb5d-4fa7-997f-a22b90969131",Paragraph"
        }
    ]
}


Code Block
languagejs
themeEmacs
titletoString: false, useStyle: true
{
     "type": "TextRunBody",
    "children": [
        {
 }           "children": [
],             "id": "se_2e8fd0e1-1a58-4e24-b939-09bac14c24a2",  {
          "className": "",
            "typetext": "Paragraph안녕",
            "fromHTMLBuilder": false,        "style": {
      "defaultStyle": {                 "margincolor": {
                            "topr": 16128,
                      "left      "g": 0128,
                    "right        "b": 0, 255
                        }
  "bottom": 16                 },
                    "displaytype": "block",TextRun"
                },
         "overflowWrap": "break-word"       {
       },             "tagNametext": "P하세요",
                    "endRunStylestyle": {}
              }     ],     "pageInfocolor": {
          "padding": {                  "leftr": 23,255,
                            "rightg": 23,128,
                    "top        "b": 18,128
              "bottom": 18         }
                    },
              "styleSheet      "type": "TextRun"
                }
            ],
            "linkTagStrtype": "",
Paragraph"
        }
   "scriptStrs": []
}


Code Block
languagejs
themeEmacs
titletoString: true
'{"id":"se_5a9f922e-db5a-41cf-b026-00a020125348","type":"Body","fromHTMLBuilder":false,"style":{},"children":[{"style":{},"children":[{"text":"안녕하세요.안녕","isEmojitype":false,"styleTextRun":{},{"idtext":"se_7e1a7f55-cb5d-4fa7-997f-a22b90969131하세요","type":"TextRun"}],"id":"se_2e8fd0e1-1a58-4e24-b939-09bac14c24a2","className":"","type":"Paragraph","fromHTMLBuilder":false,"defaultStyle":{"margin":{"top":16,"left":0,"right":0,"bottom":16},"display":"block","overflowWrap":"break-word"},"tagName":"P","endRunStyle":{}}],"pageInfo":{"padding":{"left":23,"right":23,"top":18,"bottom":18}},"styleSheet":"","linkTagStr":"","scriptStrs":[]}'