Esempio n. 1
0
$newfield->multiLang = false;
$newfield->widthField = 8;
$newfield->height = 200;
$newfield->value = array("fr" => "FRxxééééxx", "en" => "ENxxxx");
$newfield->defaultValue = "eeeeeeeee";
$newfield->tooltip = "tooltip";
$newfield->toolbar = "Default";
$newfield->startFolder = "test";
$newfield->extensionsAuthorized = "images";
$newfield->variablesAuthorized = true;
$newfield->dimMax = "500x400";
$newfield->dimThumbs = array("100x100", "200x");
$newfield->upload = true;
$newfield->disabled = false;
$newfield->add();
$newfield->rule("required", true);
//http://www.aliaspooryorik.com/blog/index.cfm/e/posts.details/post/using-jquery-validate-plugin-with-ckeditor-396
$newfield = new file();
$newfield->field = "Ffile";
$newfield->label = "File";
$newfield->multiLang = true;
$newfield->variablesAuthorized = true;
$newfield->vaxlue = array("fr" => "FxxxR", "en" => "EN");
$newfield->defaultValue = "eeeeeeeee";
$newfield->placeholder = "placeholder";
$newfield->tooltip = "tooltip";
$newfield->startFolder = "test";
$newfield->dimMax = "500x400";
$newfield->dimThumbs = array("100x100", "200x");
$newfield->extensionsAuthorized = "jpg,png,zip";
$newfield->upload = true;