Fix #1579 Adding PHP and Code Bug [Editor]

Fix #1579