Date: Thu, 28 Mar 2024 17:27:38 +0900 (KST) Message-ID: <1940851743.6969.1711614458669@localhost> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_6968_456158698.1711614458669" ------=_Part_6968_456158698.1711614458669 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The API model used to edit the DIV.
The HTML String passed as an argument is added as a child at the back of= the Element.
var div =3D editor.= getAPIModelById('id'); div.append('<span>TEXT</span>');=20
The HTML String passed as an argument is added as a child to the front o= f the Element.
var div =3D editor.= getAPIModelById('id'); div.prepend('<span>TEXT</span>');=20
Removes the Element itself.
IF ALL ELEMENTS ARE REMOVED, ERRORS MAY OCCUR IN SUBSEQUENT OPERATION= S.
var div =3D editor.= getAPIModelById('id'); div.remove();=20
Replaces the element itself with the HTML String passed as an argument.<= /p>
var div =3D editor.= getAPIModelById('id'); div.replace('<div><p><span>Div replaced</span></= p></div>');=20
Set the HTML string value passed as an argument to the internal HTML of = the DIV.
var div =3D editor.= getAPIModelById('id'); div.setHTML('<p><span>Add HTML. All previously entered informat= ion will be erased.</span></p>');=20
Set the text string value passed as an argument to the internal Text of = the DIV.
var div =3D editor.= getAPIModelById('id'); div.setText('Sample Text.');=20
Sets the height of the DIV.
var div =3D editor.= getAPIModelById('id'); div.setHeight(200); div.setHeight(200, 'px');=20
Sets the width of the DIV.
var div =3D editor.= getAPIModelById('id'); div.setWidth(400); div.setWidth(100, '%');=20