adds missing $config in readonly method
fixes a bug where, when label not set, html code is shown as the placeholder