cancel
Showing results for 
Search instead for 
Did you mean: 

Change size of the wiki editor box.[Solved]

michaelc
Champ on-the-rise
Champ on-the-rise
Change size of the wiki editor box.
Problem Description:    I have had a request to change the size of the wiki editor box.
it was requested to be larger.

it seemed I could change simple-editor.js, but this did not have the effect I wanted.
where is the tinymce component sized ?
1 REPLY 1

michaelc
Champ on-the-rise
Champ on-the-rise
I got it both page.js amd createform.js need to change.
// Tiny MCE
         var width = Dom.get(this.id + "-form").offsetWidth - 100;
         var height = YAHOO.env.ua.ie > 0 ? document.body.clientHeight : document.height;
         if ( height == undefined ) height = document.body.clientHeight;
         height = height - 400
         this.widgets.editor = Alfresco.util.createImageEditor(this.id + '-content',
         {
            height: height,
            width: width,
            inline_styles: false,
            convert_fonts_to_spans: false,
            theme: "advanced",
            plugins: "table,visualchars,emotions,advhr,print,directionality,fullscreen,insertdatetime",
            theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect,forecolor",
            theme_advanced_buttons2: "bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,alfresco-imagelibrary,image,cleanup,help,code,removeformat,|,insertdate,inserttime",
            theme_advanced_buttons3: "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,advhr,|,print,|,ltr,rtl,|,fullscreen",
            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            theme_advanced_statusbar_location: "bottom",
            theme_advanced_path: false,
            theme_advanced_resizing: true,
            siteId: this.options.siteId,
            language: this.options.locale
         });
         this.widgets.editor.addPageUnloadBehaviour(this.msg("message.unsavedChanges.wiki"));
         this.widgets.editor.render();