Hi
1) By setting the third parameter (rows) of the HtmlEditorField constructor (see code below for an example)
2) In theory yes, practically no...
The HtmlEditorConfig allows different configurations. Sadly, in the CMS only one (the active) configuration is considered.
In the following code I define a "reduced" configuration and then toggle the configurations with
HtmlEditorConfig::set_active('cms');. This seems to be bugged though, since TinyMCE configuration is only written once per "Page" and not per EditorField.
HtmlEditorConfig::get('reduced')->disablePlugins('table');
HtmlEditorConfig::get('reduced')->setButtonsForLine(1,
'bold','italic','underline','strikethrough','separator',
'formatselect','separator',
'sslink','unlink','separator',
'bullist','numlist','hr','charmap'
);
HtmlEditorConfig::get('reduced')->setButtonsForLine(2);
HtmlEditorConfig::get('reduced')->setButtonsForLine(3);
HtmlEditorConfig::set_active('cms');
$htmlField1 = new HtmlEditorField('Text1', 'Text 1', 15);
HtmlEditorConfig::set_active('reduced');
$htmlField2 = new HtmlEditorField('Text2', 'Text 2', 15);
Not sure if a per field configuration can easily be achieved or not. Maybe a core-dev could shed some light on this?