editor.setHeight(getHeight()); editor.setWidth(getWidth());
    protected Layout getLayout(Object object, Class type) {        return new Layout() {            @Override            public HtmlComponent createComponent(Object object, Class type) {                HtmlBlockContainer container = new HtmlBlockContainer();                                HtmlLink link = new HtmlLink();                link.setModuleRelative(false);                link.setContextRelative(true);                                link.setUrl(TinyMceEditor.CODE_PATH);                HtmlScript sourceScript = new HtmlScript("text/javascript", link.calculateUrl(), true);                container.addChild(sourceScript);                TinyMceEditor editor = new TinyMceEditor(getConfig());                editor.setRows(getRows());                editor.setColumns(getColumns());                editor.setTargetSlot((MetaSlotKey) getInputContext().getMetaObject().getKey());                container.addChild(editor);                if (isSafe()) {                    editor.setConverter(new SafeHtmlConverter());                }                                return container;            }                    };    }