FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Third party plugins, patches, bugfixes
Post Reply
User avatar
murat
FormaLms User
Posts: 114
Joined: Fri Oct 12, 2012 6:28 pm
Version: forma.lms 2.0

FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by murat »

How do I install tinymce v4.5.1 and moxiecut plugin?

firstly, tinymce is formalms text editor and tinymce addon new path: "addons/tinymce" ( it isn't name : tiny-mce )
After, you must change lib.editor file for tinymce new version

"/lib/lib.editor" like this:

Code: Select all

		
//using new tinymce
case 'tinymce':
		   	Util::get_js(Get::rel_path('base').'/addons/tinymce/tinymce.gzip.js', true, true);
			Util::get_js(Get::rel_path('base').'/addons/tinymce/formalms.js', true, true);
Secondly, new tinymce plugin is "opensource moxiecut". This is new filemanager.
path: "addons/tinymce/plugins/moxiecut"

you must create new folders for moxiecut:
  • files/uploads/documents
    files/uploads/downloaded
    files/uploads/images
    files/uploads/media
    files/uploads/other
finally , you must change .htacces file with new .htacces becaouse You should allow "api\.php|tinymce.gzip\.php| "

example:
<FilesMatch "(index\.php|ajax\.adm_server\.php|ajax\.server\.php|paypal\.php|tasks\.php|tinymce.gzip\.php|index_tiny\.php|scormXmlTree\.php|soaplms\.php|scorm_page_body\.php|text\.php|users\.php|write\.php|api\.php|check\.php)$">
Order Allow,Deny
Allow from all
</FilesMatch>


NOTE:

if you want to change tinymce language file
you must change line 51 into "tinymce/tinymce.gzip.php" file.
language package : tinymce/language/en_GB.js
you can download other language package this website : https://www.tinymce.com/download/language-packages/

example:
line 51 : "languages" => "en_GB",

If you don't want to deal with these operations, copy the zip file directly

Download links:
alternative 1 : https://ufile.io/b7864
alternative 2 : http://s000.tinyupload.com/index.php?fi ... 7552838900
alternative 3 : http://www.megafileupload.com/clgK/form ... addons.zip
Attachments
editor-view-1.png
editor-view-2.jpg
editor-view-3.jpg
Hello,I'm Murat. If you need me, you can contact my mail
jasmines
Senior Boarder
Posts: 277
Joined: Fri May 03, 2013 12:29 pm

Re: FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by jasmines »

Doesn't work:

Failed to load resource: the server responded with a status of 404 (Not Found)
tinymce.gzip.php?js=true&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,adv…:4 Failed to load: http://xxx.com/addons/tinymce/themes/ad ... eme.min.js
http://xxx.com/addons/tinymce/plugins/s ... gin.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
tinymce.gzip.php?js=true&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,adv…:4 Failed to load: http://xxx.com/addons/tinymce/plugins/s ... gin.min.js
http://xxx.com/addons/tinymce/plugins/a ... gin.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
tinymce.gzip.php?js=true&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,adv…:4 Failed to load: http://xxx.com/addons/tinymce/plugins/a ... gin.min.js
http://xxx.com/addons/tinymce/plugins/a ... gin.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
tinymce.gzip.php?js=true&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,adv…:4 Failed to load: http://xxx.com/addons/tinymce/plugins/a ... gin.min.js
http://xxx.com/addons/tinymce/plugins/a ... gin.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
tinymce.gzip.php?js=true&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,adv…:4 Failed to load: http://xxx.com/addons/tinymce/plugins/a ... gin.min.js
http://xxx.com/addons/tinymce/plugins/e ... gin.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
tinymce.gzip.php?js=true&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,adv…:4 Failed to load: http://xxx.com/addons/tinymce/plugins/e ... gin.min.js
http://xxx.com/addons/tinymce/plugins/i ... gin.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
tinymce.gzip.php?js=true&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,adv…:4 Failed to load: http://xxx.com/addons/tinymce/plugins/i ... gin.min.js
http://xxx.com/addons/tinymce/plugins/i ... gin.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
tinymce.gzip.php?js=true&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,adv…:4 Failed to load: http://xxx.com/addons/tinymce/plugins/i ... gin.min.js
http://xxx.com/addons/tinymce/plugins/x ... gin.min.js Failed to load resource: the server responded with a status of 404 (Not Found)
tinymce.gzip.php?js=true&plugins=autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,adv…:4 Failed to load: http://xxx.com/addons/tinymce/plugins/x ... gin.min.js
User avatar
murat
FormaLms User
Posts: 114
Joined: Fri Oct 12, 2012 6:28 pm
Version: forma.lms 2.0

Re: FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by murat »

can you change .htaccess file?

if you can changed htaccess file, you must change tinymce folder name and tinymce codes into lid.editor .
example:
Folder name: addons/tiny-mce

Code: Select all

case 'tinymce':
            Util::get_js(Get::rel_path('base').'/addons/tiny-mce/tinymce.gzip.js', true, true);
         Util::get_js(Get::rel_path('base').'/addons/tiny-mce/formalms.js', true, true);
Hello,I'm Murat. If you need me, you can contact my mail
User avatar
murat
FormaLms User
Posts: 114
Joined: Fri Oct 12, 2012 6:28 pm
Version: forma.lms 2.0

Re: FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by murat »

also,
htacces old allow tiny_mce_gzip\.php| "
you can change allow like this : tinymce.gzip\.php| "
Hello,I'm Murat. If you need me, you can contact my mail
jasmines
Senior Boarder
Posts: 277
Joined: Fri May 03, 2013 12:29 pm

Re: FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by jasmines »

Do you know the meaning of 404 error? It's not htaccess issue.
jasmines
Senior Boarder
Posts: 277
Joined: Fri May 03, 2013 12:29 pm

Re: FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by jasmines »

There is no plugins/emotions/plugin.min.js in the zip you attached.
User avatar
murat
FormaLms User
Posts: 114
Joined: Fri Oct 12, 2012 6:28 pm
Version: forma.lms 2.0

Re: FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by murat »

Hi Jasmines,

I created a demo site for you.

You can test http://formalms.tk

user informations;
username: admin
Password: demo123
Hello,I'm Murat. If you need me, you can contact my mail
jasmines
Senior Boarder
Posts: 277
Joined: Fri May 03, 2013 12:29 pm

Re: FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by jasmines »

Site is not reachable from www.
Anyway, I looked in ftp and I found the error. Thanks a lot.
It would be a nice idea to get the lang code from the LMS. I tried something like:

Code: Select all

"languages"  => Layout::lang_code(),
on line 51, but it doesn't work...
Suggestions?
marcocastignoli
Newbie
Posts: 2
Joined: Wed Jan 11, 2017 11:27 am

Re: FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by marcocastignoli »

Hello Murat,
your solution is not a perfect replacement for what is now implemented in forma. In fact the actual file manager uses the database and a custom permission system.
xenothan
Newbie
Posts: 10
Joined: Sun Jan 20, 2013 3:27 am

Re: FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by xenothan »

Hi Murat

I am stil lusing Docebo 405, and the new editor works very well, except for when i try to embed a file. The path that it adds is not "/files/uploads/images/image.png" but rather "../images/image.png"

Where can I change it so that it uses an absolute path?

Thank you!
Xenothan Hojem
Jetweb (Pty) Ltd
http://www.jetweb.co.za/
Post Reply