Editor Lite?

Editor Lite?

על ידי Chardelle Busch בתאריך
מספר תגובות: 16
תמונה של Core developers

Janne et al.,

Would it be possible to run two versions of the editor?  I think there are too many icons/options for my users--could I run a lite version of the editor for users while still running the regular version for teachers?  Could I call one htmlarea.php file for users and one for teachers?  (Or, better yet, have the option of choosing which version to use when adding activities that use the editor--just fantasizing here.)

TIA

Chardelle

ממוצע דרוגים: -
בתגובה ל: Chardelle Busch

Re: Editor Lite?

על ידי Janne Mikkonen בתאריך
At the moment you can disable buttons globally (ver 1.5.dev), but you certainly hit the nerve there.
צרופה hidebuttons.jpg
בתגובה ל: Janne Mikkonen

Re: Editor Lite?

על ידי Chardelle Busch בתאריך
תמונה של Core developers

Hi Janne,

Well, that is a step in the right direction.  At least with 1.5 we will be able to get rid of some of those we don't use. (But it still would be nice to have a student version.)

בתגובה ל: Chardelle Busch

Re: Editor Lite?

על ידי Janne Mikkonen בתאריך
Something like this maybe?

- Janne -
צרופה hidebuttons.png
בתגובה ל: Janne Mikkonen

Re: Editor Lite?

על ידי Ray Lawrence בתאריך
Initially when I saw this thread I thought the whole concept was unnecessary having wrongly imagined cut down alternative editors. Having seen these screen shots I now get the idea and I like it very much!

Ray
בתגובה ל: Janne Mikkonen

Re: Editor Lite?

על ידי N Hansen בתאריך
Looks good. So "global" applies to everything but students, i.e. admins and teachers?  But why are there the check boxes for font etc. at the top of the student version only?
בתגובה ל: N Hansen

Re: Editor Lite?

על ידי Janne Mikkonen בתאריך
Noup חיוך גדול, "Global" applies to everybody and student applies only students.  The final settings for students are globals + student settings.

Why only student part have the "fontname", "fontsize" and "format" checkboxes? Because the whole thing is still under development process. Those checkboxes will be on all version at the end.
בתגובה ל: Janne Mikkonen

Re: Editor Lite?

על ידי W Page בתאריך
Hi Janne!

Again you work your magic.  Thank you for being so responsive.

I have been a bit quiet but I do read the posts.  School has me running.  They use Blackboard at school.  I am forced to use IE to use the HTML editor and it is no where near as good as this one.

BTW, it looks like things have cooled off at work??? smile

WP1
בתגובה ל: Janne Mikkonen

Re: Editor Lite?

על ידי Jeff Wood בתאריך
בתגובה ל: Jeff Wood

Re: Editor Lite?

על ידי Chardelle Busch בתאריך
תמונה של Core developers

Thanks Jannekiss,

I try to make things as simple as possible for my non-computer savvy users (I have students in their 70's).  I really would only like my students to have a few basic font options and the emoticons.  Although I can't say I've really had complaints, I was just thinking that all of these icons could be intimidating (and slow down page loading?) 

This would be really great!

בתגובה ל: Chardelle Busch

Re: Editor Lite?

על ידי Ger Tielemans בתאריך

We are using 1.3.4 and the intelligence of the editor is killing us:

We (=our teachers) create courses on one school and then copy the course to another location with other rights. In the old Moodle we could set relativ paths, the html-editor is changing this in absolute paths, a real disaster if you login as student: none of the "repaired" links is working.. 

I kown how to workaround this problem: do never use the html-editor, but I cannot sell this to the WYSIWYG teacher..

Can you switch off this path-repair-operation too?


In the backup the resources are copied to the new course, but the course-id in the paths are not adapted..

בתגובה ל: Ger Tielemans

Re: Editor Lite?

על ידי Martin Dougiamas בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Moodle HQ תמונה של Particularly helpful Moodlers תמונה של Plugin developers תמונה של Testers
In Moodle 1.4.x this is not a problem, because backup/restore translates those links properly to the new courseid.
בתגובה ל: Janne Mikkonen

Re: Editor Lite?

על ידי Martin Dougiamas בתאריך
תמונה של Core developers תמונה של Documentation writers תמונה של Moodle HQ תמונה של Particularly helpful Moodlers תמונה של Plugin developers תמונה של Testers
Janne! - a little feature request from me ... what I need is a way to specify editor functions on the fly.

For example, I'm just working on the Messaging discussion form and would like to put a slimmed-down editor in there ... the main editor is a little unwieldy in this little window.

It would be great to be able to pass a comma-separated list of functions to print_textarea(). This would open the way to a user preference in future where each user can choose the buttons they want for certain contexts.
בתגובה ל: Martin Dougiamas

Re: Editor Lite?

על ידי Janne Mikkonen בתאריך
Well I've had a real urge to change the print_textarea funciton for a long time now. It'd be better if the function could take dynamic parameters, so we could make it much more easier to create different types of settings for the editor.

- Janne -
בתגובה ל: Chardelle Busch

Re: Editor Lite? Patches for daredevils???

על ידי Janne Mikkonen בתאריך
At this point testing and commenting these new features would be nice קריצה

If one haven't used patches before here is a fast how to:
patch origfile < patchfile

If you're using Windows I suggest that you should visit at the http://gnuwin32.sourceforge.net and download some real powertools for your Windows machine.

patches:
/moodle/lib/weblib.php -> weblib.php.patch
/moodle/lib/editor/htmlarea.php -> htmlarea.php.patch
/moodle/admin/editor.php -> editor.php.patch
/moodle/admin/editor.html -> editor.html.patch
/moodle/user/edit.html -> edit.html.patch
/moodle/theme/<themeyourusing>/style.php -> style.php.patch

Cheers,
Janne

ps. Do not use in production servers...

for developers:
To pass your own config for the editor, first create a config:
$config  = 'var config = new HTMLArea.Config();' . "\n";
$config .= 'config.hideSomeButtons(" bold italic underline ");' . "\n";


pass it to use_html_editor function:
use_html_editor('', $config);