Updated at 3:27 p.m.

Former San Diego mayor Bob Filner (D) pleaded guilty Tuesday to false imprisonment and battery charges involving three women, according to an official with the San Diego Superior Court.

Court spokeswoman Karen Dalton said that Filner will be sentenced Dec. 9. She said the state attorney general's office had charged Filner "with one felony count for false imprisonment by violence, fraud, menace and deceit ... and two misdemeanor counts of battery." The victims are three unnamed women.

Filner resigned from office in August as part of a settlement of a lawsuit alleging sexual harassment. At least 18 women have accused Filner of sexual harassing them.

Under his plea agreement, Filner will avoid jail time. But he will have to serve three months of home confinement and three years of probation, give up part of his mayoral pension, and agree not to run for office again, the attorney general's office said. 

"This conduct was not only criminal, it was also an extreme abuse of power,” said California Attorney General Kamala Harris. "This prosecution is about consequence and accountability. No one is above the law."

The embattled ex-mayor, 71, served in the U.S. House for nearly 20 years before opting to run for San Diego's top job in 2012. He won a competitive contest, defeating Republican Carl DeMaio on the second ballot en route to becoming San Diego's first elected Democratic mayor in more than two decades.

This summer, he faced a flurry of accusations that he sexually harassed numerous women. For weeks, Filner refused to leave office even as members of his own party called on him to step aside. In late-July, he announced plans to enter a "behavior counseling clinic" for two weeks of therapy, and said he was committed to returning to office.

But the pressure for him to leave didn't subside, and weeks later, Filner announced that he would vacate the mayor's office, apologizing to "all the women I offended."

A special election for mayor will be held Nov. 19.

Below is the complaint against Filner.

Criminal complaint against former San Diego mayor Bob Filner by The Washington Post

GALLERY:  Scandal-plagued politicians: Where are they now?