ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


how to change text and html content editor width


  • 2011-01-25 12:49:03

    how to change text and html content editor width

    I would like to change the width of the text and html editors in ATutor. The instructors feel that the narrow window is too restrictive.
    I have dug around in the edit.js and some of the php files in the editor module but can't find it. I tried changing the cols= for the textareas and that did not work.

    Where is the width set for that area?

    (Sorry I am not sure if I should have posted this here or in the Development forum)

    Thank you
    atutor version: 2.0.2

  • 2011-01-25 13:04:05

    Re: how to change text and html content editor width

    You should not need to change anything. The editor adjusts to the available space, and you can click and drag the bottom right corner to increase the size.

    Not sure how you would manually increase the size, to extend past the edge of the window for instance. It might be something to look up in the TinyMCE developer docs. Keeping in mind that if you hack ATutor trunk code, you'll probably loose your changes when you upgrade. Try to keep you changes to modules, themes, or perhaps create patches to apply trunk changes.

    The browser used might also affect whether than editor adapts size or not.

  • 2011-01-25 13:30:06

    Re: how to change text and html content editor width

    Aha! You are correct. It seems to be a browser issue.

    When I posted that, I had only tried with Internet Explorer 8. With IE8, the width of editors do not change when you resize the window.

    I just tried this with Firefox and it behaves as you describe.

    I did edit the tinymce.inc.php, adding a line width : "100%" . With that change, the HTML visual editor does resize in IE8, however the Plain Text and HTML (non-visual) editors do not.

    So this seems to be an IE8 issue. googling textarea and IE8 pulls up a lot of discussion on this topic. I hope I can get it working because my agency is standard

    Thanks, I think I will have to create patches for some of the other changes that I have made

  • 2011-01-25 13:35:47

    Re: how to change text and html content editor width

    Sorry, that sentence should have read "my agency is standardized on using Internet Explorer"

  • 2011-01-25 16:46:42

    Re: how to change text and html content editor width

    OK I edited the ie_styles.css file in each theme
    it said
    textarea#body_text{
    *width:600px;
    }

    changed it to
    textarea#bodytext{
    width:99%;
    }

    and now the Plain Text and HTML editors resize in IE8
    I have not tested it on IE7
    Of course Firefox ignores that style sheet.

    This did not fix the Visual HTML Editor not resizing.
    For that I still had to use the tinymce.inc.php change