document selectionPalette and maxSelectionSize