Catalysis of the reaction: ATP + CoA + trans-ferulate = (E)-feruloyl-CoA + ADP + phosphate. ADP + phosphate or AMP + diphosphate may be formed in this reaction.
trans-ferulate:CoASH ligase (ATP-hydrolysing)