TinyMCE has a few more possibilities than Sumernote, but sadly it doesn't support image browsing or upload - people using it would need to insert URL's ...

So I wonder if this is intentionally, or something being forgotten?

Anyhow I'm hoping to see a CKEditor on steroids (with video plugin etc.) added to the Marketplace soon. ;)
Wednesday, October 28 2015, 10:48 PM
Share this post:
Responses (6)
  • Accepted Answer

    Thursday, October 29 2015, 04:24 PM - #Permalink
    Their site recommends the following plugin for images/files but not sure how to install it:

    http://www.moxiemanager.com
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 29 2015, 06:45 PM - #Permalink
    Yep, but it's not free so it can't be added to Arastta as default.

    But Arastta also has a quite descent image manager included allready, so I guess it's "just" a matter of getting it fired up inside TinyMCE by adding a browse button to the image/video insert (URL field). Isn't it what's done for Sumernote?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, October 29 2015, 11:41 PM - #Permalink
    I'm digging in this, and have found out some parts...

    I got the advanced tab added and working for image insert/edit, and I also have a browse button on the URL field, but need to figure out what the correct call to filemanager.php would be.

    Anyhow for summernote there is a override for the image browser: https://github.com/arastta/arastta/blob/master/admin/view/javascript/common.js#l287-l312

    For TinyMCE we need to replace this line https://github.com/arastta/arastta/blob/master/admin/view/javascript/common.js#l671 with those lines:
    			language: editor_language,
    image_advtab: true,
    file_browser_callback : "myCustomFileBrowser"

    Where "myCustomFileBrowser" should be replaced with a working function... anyone who see what we need to do here, maybe write a new function?

    Edit: Javascript isn't my thing, but found this doc: http://www.tinymce.com/wiki.php/tinymce3x:how-to_implement_a_custom_file_browser
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, October 31 2015, 08:57 PM - #Permalink
    Me thinking out load... going slightly of topic... ;)

    If TinyMCE isn't fully integrated into Arastta, it shouldn't be in core, but better proposed as "core supported" extension. It would probably be the safest path anyway, as then the users could use any of those fully loaded CKEditor's available for OC, without having to modify them first. The changes done to get TinyMCE into Arastta seems to have broken the compatibility for those extensions.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, October 31 2015, 11:40 PM - #Permalink
    Cüneyt is writing some new triggers for editors so will check this after that, most probably next week.
    Like
    1
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, January 19 2016, 01:37 PM - #Permalink
    Added it as an issue since it seems forgotten: https://github.com/arastta/arastta/issues/334
    The reply is currently minimized Show
Your Reply