Allow editor form to set editor mode

With this patch, if we create a new editor using JForm we can to set the mode (Simple = 0 , Advance = 1 , Extended = 2) using the JForm xml file