Forums | Mahara Community
Text box editor
16 March 2010, 6:55 AM
Is there a way of making the text box editor in design view of a view bigger. We are using text box templates and learners are becoming confused because they cannot see enough of the editing screen. There used to be a full screen option, but that seems to have disappeared in 1.2.
Look forward to your responses.
16 March 2010, 6:44 PMHi Kevin, this was raised in the Developers forum, and identified as an introduced bug. It should be fixed in an upcoming release...
17 March 2010, 5:39 AMThanks Steve, do we know when the next release will be?
17 March 2010, 8:03 PM
The fix might already be available via git. Original discussion thread is here:
17 March 2010, 9:21 PM
We've decided to leave this as is for the moment. There are some issues with the WYSIWYG editor not transferring the content back to the main window when the fullscreen window is closed. Losing all your work because of this problem is probably more frustrating than working in a smaller editor, so until we can fix that problem, the fullscreen feature will likely remain disabled.
The bug report is here: https://bugs.launchpad.net/mahara/+bug/530656
As always, feel free to make suggestions for how we could work around this. Making the editors larger by default is something we will probably do, but isn't an ideal solution.
18 March 2010, 4:53 AM
Is there a way of increasing the size in the page code, which file would I look at to do this?
21 March 2010, 5:46 PM
You'd have to do it for each editor by changing the 'rows' and 'cols' values for the 'wysiwyg' form elements. The edit profile form is defined in artefact/internal/index.php, the resume form is defined in artefact/resume/index.php, and so on. If you need to know where a particular form is defined in code, I can help you out.
Alternatively, if you want all wysiwyg editors across the entire site to have the same size, you can simply add some values in lib/form/elements/wysiwyg.php. At the top of the pieform_element_wysiwyg function, just put something like this (adjusting the values as you desire):
$element['rows'] = 20;
$element['cols'] = 80;
Hope that helps.
07 September 2010, 5:59 PM
I realy tried but without luck. I realy need a much bigger textbox in the editor for the textbox artifact across the entire site. Any help is much appreciated.
Quote: "Alternatively, if you want all wysiwyg editors across the entire site to have the same size, you can simply add some values in lib/form/elements/wysiwyg.php. At the top of the pieform_element_wysiwyg function, just put something like this (adjusting the values as you desire):
$element['rows'] = 20;
$element['cols'] = 80;"
Below are a couple screens to explain. The first is a document the kids are to maintain. The second is what they see when the edit it. I would like the editor to be bigger so its about the size of the red box.