Point p) {
if (host.getFigure() instanceof CSSTextFigure) {
CSSTextFigure figure = (CSSTextFigure) host.getFigure();
// make a copy to not destroy the original o
p = p.getCopy();
figure.translateToRelative(p);
int offset = figure.getInsertionOffset(p);
if (offset >= 0) {
return new DesignPosition(host, offset);
}
return null;