Re: [Server-devel] tiny_mce Sugar theme

2008-09-30 Thread Tarun Pondicherry
Hi Martin,

Nothing else interesting I can think of, mostly working on cleaning up 
and organizing, and rebasing of off XS Moodle.
And of course, making clean commits this time =).

Thanks,
Tarun

Martin Langhoff wrote:
 On Mon, Sep 29, 2008 at 6:05 PM, Tarun Pondicherry
 [EMAIL PROTECTED] wrote:
   
 Most of it is self contained in
 lib/editor/tinymce/jscripts/tiny_mce/themes/sugar/.
 

 I suspected it'd be most :-) that's how it is usually. Those little
 changes... is specially good if you have them as a separate commit.
 Then you can say look at commit ABCD123, it has all you need, so
 then you can cherry-pick commits between branches.

 Anyway, this is great info, I'll have to come back to it later, but
 now that I have it, it'll be easier. Not as easy as applying a patch
 or a series of patches, but very good anyway. Thanks!

 Are there other interesting bits that are worth looking at in the
 Edublog branch? (Other than your oublog changes to add external blog
 support, I know about that :-) )

 cheers,



 m
   

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] tiny_mce Sugar theme

2008-09-28 Thread Martin Langhoff
Hi Tarun,

As I said, I like it! Playing a bit with themes today, I wonder what
do we need to do to add that theme to Moodle HEAD?

 - is it all self-contained in
lib/editor/tinymce/jscripts/tiny_mce/themes/sugar/ ?
 - did you have to patch tiny_mce or other parts of moodle at all?

cheers,


m

-- 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] tiny_mce Sugar theme

2008-09-28 Thread Tarun Pondicherry
Hi Martin,

Most of it is self contained in 
lib/editor/tinymce/jscripts/tiny_mce/themes/sugar/.

Moodle needs to be hacked a bit to get the image upload to work with it 
(avoid the Moodle file dialog).  Basically, there needs to be an 
additional file upload script that just uploads the image and then 
echo's the url to that file, which the theme will pick up.  The one 
EduBlog is currently using is:


http://dev.laptop.org/git?p=projects/EduBlog;a=history;f=moodle/lib/editor/tinymce/uploadimage.php
 


The  theme_sugar_imageupload parameter needs to be set when 
initializing tinyMCE so that it knows where to find the upload script, 
so in the tinyMCE config, this additional line is needed (the script 
location may need to be modified):

theme_sugar_imageupload : ../uploadimage.php,

On my todo list is to push fileupload out of the theme and into a 
tinyMCE plugin to make the implementation cleaner.

Write upload would need a bunch of things specific to the EduBlog 
server, and is unnecessary for the new builds.

Thanks,
Tarun

Martin Langhoff wrote:
 Hi Tarun,

 As I said, I like it! Playing a bit with themes today, I wonder what
 do we need to do to add that theme to Moodle HEAD?

  - is it all self-contained in
 lib/editor/tinymce/jscripts/tiny_mce/themes/sugar/ ?
  - did you have to patch tiny_mce or other parts of moodle at all?

 cheers,


 m

   

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel