Added extra argument for onText function.
Placeholder will not be created inside elements which can not handle span.
Handle custom elements.