CKEditor widget
===============

The widget settings for a local field can overload the global ckeditor
settings.

We will test first the rich widget settings used by the default front-page

Get the rows attribute for this widget

    >>> self.loginAsManager()
    >>> doc =self.portal['front-page']
    >>> field = doc.Schema()['text']
    >>> rows = field.widget.rows

Calculate the widget height as done in ckeditorview

    >>> height = str(int(rows)*25) + 'px'

Get the ckeditor widget settings on front-page
----------------------------------------------

    >>> self.browser.open('http://nohost/plone/front-page/edit')

See if widget_settings are in contents:

    >>> '<div class="widget_settings">' in self.browser.contents
    True
    
    >>> self.browser.getControl(name='cke_height').value== height
    True

Choose to overload some widget properties in control panel
----------------------------------------------------------

    >>> self.browser.open('http://nohost/plone/@@ckeditor-controlpanel')

Choose to overload the 'height' widget property by the control panel 'height' value    

    >>> self.browser.getControl(name='form.properties_overloaded.add').click()
    >>> self.browser.getControl(name='form.properties_overloaded.1.').value = 'height'

Fix the height property to any value
    >>> self.browser.getControl(name='form.height').value = '600px'
    >>> self.browser.getControl("Save").click()

Control that the local field widget setting 'height' is no more here

    >>> self.browser.open('http://nohost/plone/front-page/edit')
    >>> 'name="cke_height"' in self.browser.contents
    False