A process which results in the assembly, arrangement of constituent parts, or disassembly of an extracellular matrix of the endocardium. The endocardium is an anatomical structure comprised of an endothelium and an extracellular matrix that forms the innermost layer of tissue of the heart, and lines the heart chambers.