Localized fields in the defect mode of one-dimensional photonic crystals with active impurity are studied with the help of the theory of spontaneous emission from two-level atoms embedded in photonic crystals. Numerical simulations demonstrate that t