Yet Another Full Featured TinyMCE v1.01

Release Notes

Installation:

If you already have tinymce installed {
   disable the plugin 'tinymce' in the admin panel;
   backup your existing /mod/tinymce folder;
   delete it;
   drop the new tinymce folder from the zip into /mod;
  
   } else {
   
   drop the new tinymce folder from the zip into /mod;
   }
  
create a directory 'assets' in your $_SERVER['DOCUMENT_ROOT'];
chmod it to 777 (linux only);
enable the plugin 'tinymce' in the admin panel.

This Version of tinymce has automatic language support depending on the users language settings
with the exception of tinybrowser (at the moment - i'm working on it)

You can change the tinybrowser language and some other tinybrowser settings
(default tinybrowser language, name of 'assets' directory etc.)
of the tinybrowser plugin in:
/mod/tinymce/tinymce/jscripts/tiny_mce/plugins/tinybrowser/config_tinybrowser.php

The tinybrowser creates subdirectories under 'assets' depending on the username,
so every user has his own assets directory.

/assets
   /[username]
     /img
         /_thumbs       
     /media
     /file
    
Usernames MUST NOT CONTAIN SPACES in this version.

Embedded flash videos now also will displayed in IE6 and IE7!

For me it works fine, feel free to make it better!
Karsten Schulze (http://ks.frinx.eu)

  • Did a quick test, works like a charm! Thanks for this one, exactly what I needed ;-)

    Instead of chmodding the assets folder to 777 you might want to change ownership of the folder to the webserver user, usually something like 'apache' or 'www-data'.

  •  in tinybrowser Set default language de

    change /mod/tinymce/tinymce/jscripts/tiny_mce/plugins/tinybrowser/config_tinybrowser.php line 38 to for english language

    $tinybrowser['language'] = 'en';

  • did you fix the problem with TinyMC strippng inline styles?

  • It's not 'Yet Another...' for me... this something I really needed... awesome work.

  • Maybe we need to change using username in path to userid? And we will forget about spaces in the username.

  • To Ciaphas:
    did you fix the problem with TinyMC strippng inline styles?

    Due to i'm not really an PHP programmer i'm not sure what you mean :-))

  • To mobilpress:
    Maybe we need to change using username in path to userid? And we will forget about spaces in the username.

    I grab this from $_SESSION['user']->username what represents that what you named 'userid'.  If it is not possible in Elgg to create accounts with spaces in this, forget my hint. But pay attention: if it is possible in Elgg to create useraccounts with some characters in which will not be accepted in a path name, we will have the same problem.

  • To BuBu:
    in tinybrowser Set default language de[...]
    $tinybrowser['language'] = 'en';

    I will try to pass the users language settings to tinybrowser, too

  • hi

    may a stupid question, but why do you create a seperate foldes for the files instead using the one elgg already has?

  • To Steven:
    may a stupid question, but why do you create a seperate foldes for the files instead using the one elgg already has?

    Is not stupid.

    I've done this due to security reasons.
    At first - it is not sure that this directory is located in the servers root, it may be anywhere in the system where only the system can call it but there is no direct access via an url.
    At second - although it should be possible to grab the path to the systems 'dataroot' anywhere, it is not a good idea to make this path public. If you have some files uploaded with the files plugin and set accessibility to 'private' or 'logged in users' you may not want that anybody can access it if he knows the path (e.g:http//community.yourdomain.com/../dataroot/u/s/e/r/n/username/file/filename.fil).

  • Due to i'm not really an PHP programmer i'm not sure what you mean

     

    An inline style is when you apply the < style ></ style > tags or when you are using a .css file to create a page.

    When you use the tinyMC to create a page you can not use .css or inline styles. the tinyMC strips them for some reason. I'm not a programmer by any means so I can not fix this..

    Where is the plugin_reg.php file? This can be fixed by adding the [class] to the flash and the images line

  • hello - love it and it works like a charm but one quick question - for some reason i can't get any slideshow working with this

    like slide.com or flicr - regular video embed works but not slide show ?

    please advice...

    very very urgent for me :)

    Thank you very much for your hard work !

     

    Cheers

  • Hi ciaphas,
    Using inline styles in tinymce:
    Although i think this comments are not the right place to have a discussion on 'configuring tinymce', here's a hint:
    Have a look at /tinymce/views/default/input/longtext.php around line 43: 'extended_valid_elements' and
    /tinymce/start.php or /tinymce/engine/lib/input.php where you can config the 'allowedtags' array.
    Additional information about configuring tinymce is availabel here: http//wiki.moxiecode.com

    hi waxxie,
    Don't be bad at me, same to you:
    The only thing i've done with this version of tinymce is that i've found a way to pass the loginname of a user to tinybrowser that it can create directories based on this and i've found a way to dupe IE6 and IE7 to enable the use of embedded flash video.
    In addition to it i've (at the moment) absolutly no idea how to solve your special problem...

    It would give me a great pleasure if my work gives all an impact to examine the possibilities of implementing tinymce in elgg.

  • actually this is the best place to discuss it, as TinyMCE is implemented differently here than it is anywhere else.. 

    plugin_reg.php

    This is the file that needs to be editied  but it is not present.. any ideas why?

     

  • Just a note regarding where to save files and directory security:  It would be best to adhere to Elgg's standard file repository.  You can't actually call a file directly even if you know the exact path -- Elgg only allows you to grab files through a query as I know.

  • Do you know hwo to fix this then? I am assuming you do..

  • moin, nice plugin. works fine with my elgg. my suggestions is to add a tiny table tool to it.
    thanks a lot and kind regards

  • dear all,

    how to implement auto detect of urls and email to the tiny editor?

    thx,c

  • @charismeki
    if you want table support in my version of tinymce, change line 35 of /mod/tinymce/views/default/input/longtext.php
    35old: theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,|,outd[ ... ]reen",
    35new: theme_advanced_buttons2 : "cut,copy,paste,|,bullist,numlist,table,|,outd[ ... ]reen",

    and you look at the new button right of bullets :-))

  • @gabriel monge-franco
    ...  Elgg only allows you to grab files through a query as I know.

    Some elgg admins have the 'dataroot' directory under elgg root, not outside (should not be, but... :-))

    @ciaphas
    Do you know hwo to fix this then? I am assuming you do..
    Maybe... Why wasting time with boring weekends.

    @ALL
    It's on my todo list.  Some day i will understand how to use the elgg file object...

  • @ciaphas
    @charismeki

    yust uploaded a diff file for you, please test it and let me know if it works.

  • Hi all,

    just finished some minor changes to my plugin and the 'Diff' file:

    Table imlementation no longer strips the height="xx" definition,
    the users language settings now will be passed to tinybrowser so there is no need to edit the config_tinybrowser.php file manually.

    I will upload the new version only if i receive some testing results from you, so please give a response to me.

     

  • One of the best plugins on Elgg. It works like a charm

    Thank you for you hard work on this It is very usfull

  • Hi Guys,

    Any you guys having upload problems?  After pressing the "insert/edit" image icon, and then the browser button, the popup is not appearing and from ie it is showing javascript errors.

    'undefined' is null or not a object.

    This is occuring for all pages.

    Would anyone know why?

    Thanks in advance

  • Hi Guys,

    Answered my own comment but I am now having problems when it try to create the directories causing file upload failures.

    Looking at the tinybrowser config, it looks fine, assets is created in the document_root with 777 permission. 

    Anyone?

Stats

  • Category: Uncategorized
  • License: GNU General Public License (GPL) version 2
  • Updated: 2014-11-17
  • Downloads: 765
  • Recommendations: 1