Page tree

Versions Compared

Key

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

You may freely arrange the buttons to be displayed on the balloon popup.

Use 'editor.balloon' to determine configure the buttons required to edit texts, images, videos, layers, hyperlinks and tables.

Configuration Method

Code Block
languagejs
themeEmacs
titlesynapeditor.config.js (기본값default)
{
	'editor.balloon': {
        'Name of balloon popup1': ['button1', 'button2', '-', 'button3', 'button4'],
        'Name of balloon popup2': ['button5', 'button6', '-', 'button7', 'button8']
    }
}

...

NametextimagevideodivhyperlinktableCell
Descriptiontextimagevideolayerhyperlinktable

Please refer to T oolbar Toolbar Configuration for more available balloon popup names.


Example

...

Balloon Popup Configuration

Default 

Code Block
languagejs
themeEmacs
titlesynapeditor.config.js
{
	'editor.balloon': {
        'text': ['fontFamilyWithText', 'fontSizeWithText', '-', 'bold', 'italic', 'underline', 'strike', 'fontColor', 'fontBackgroundColor'],
        'image': ['objVertAlignBottom', 'link', 'unlink', 'openLink', 'alt', 'caption', '-', 'imageProperties', 'rotateDrawingObjectLeft', 'rotateDrawingObjectRight', 'imageOriginSize', 'tuiImageEditor', 'deleteImage'],
        'video': ['objVertAlignBottom', 'videoProperties', 'deleteVideo'],
        'div': ['drawingObjectBorderColor', 'drawingObjectLineThickness', 'drawingObjectLineStyle', '-', 'drawingObjectFill', 'divProperties', 'deleteDiv'],
        'hyperlink': ['link', 'unlink', 'openLink'],
        'tableCell': ['formulaInput', '-', 'fill', 'selectBorder', 'borderColor', 'lineThickness', 'lineStyle', 'cellSize', 'mergeCell', 'splitCell', 'fitTableWidth', '-', 'contentsAlign', 'verticalAlign', 'deleteRow', 'deleteCol', 'cellProperties', 'tableProperties', 'deleteTable']
    }
}

...


Table Editing Balloon Popup Configuration

Code Block
languagejs
themeEmacs
titlesynapeditor.config.js
{
	'editor.balloon': {
        'tableCell': ['formulaInput', '-', 'fill', 'selectBorder', 'borderColor', 'lineThickness', 'lineStyle', 'fitTableWidth', '-', 'insertRowBefore', 'insertRowAfter', 'insertColBefore', 'insertColAfter', 'deleteRow', 'deleteCol', 'deleteTable', '-', 'contentsAlign', 'verticalAlign',  'cellSize', 'mergeCell', 'splitCell', 'cellProperties', 'tableProperties']
    }
}


Image Removed
Screen after setting balloon popup for table editing
Result of Applying Table Editing Balloon Popup Configuration

Image Added