In the Wikitext editor there's notice stating that edits violating copyright will be reverted. It reads "Content that violates any copyrights will be deleted...", and is stored here.
VisualEditor inconsistently ignores this important message, and it doesn't display any other similar message about copyright violations prominently.