The actress, who plays Alicia Metcalfe, also revealed that her character may have a new love interest in the New Year.
Anderson told the Daily Star that she was thrilled to sign her new contract, adding: "I would happily stay in Emmerdale for as long as they will have me."
When Alicia returns to the Yorkshire dales after being let out of prison she has no idea her husband is dating Priya Sharma.
She finds out about David's secret relationship when she discovers a present that she at first thinks is for her. However, when she sees Priya wearing it she realises that they are together.
The actress said that there is no fighting and screaming in the scenes where she confronts the pair about their secret relationship.
Anderson said: "When I was filming those scenes, my heart was pounding.
"A lot of people expect her to go all guns blazing and sort Priya out. But the writers have done it so beautifully and she realises that ultimately neither of them has done anything wrong.
"David was always honest with her. She's got no bad feelings against him and ultimately he is her best friend. She loves him dearly."
[Alicia is surprised to open a pen and pencil set for Christmas from David, despite finding a bracelet earlier]
On the possibility of Alicia finding new love after her split from David, Anderson hinted: "It's on the cards that she could meet someone else. There is going to be a new Alicia in the New Year.
"She's still got that wacky side but she's going to be more self-assured and more grown-up about providing for her and her little boy, rather than depending on anyone else.
"She gets her job back in The Woolpack and there is going to be a bit of attention from someone else."
Anderson returns to Emmerdale on Tuesday, December 18.