FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Third party modules, patches, bugfixes
Post Reply
User avatar
murat
FormaLms Expert
Posts: 104
Joined: Fri Oct 12, 2012 6:28 pm
Version: forma.lms 1.4

FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Post by murat » Sun Dec 25, 2016 3:27 pm

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
You do not have the required permissions to view the files attached to this post.

jasmines
FormaLms Master
Posts: 277
Joined: Fri May 03, 2013 12:29 pm

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

Post by jasmines » Tue Dec 27, 2016 4:23 pm

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 Expert
Posts: 104
Joined: Fri Oct 12, 2012 6:28 pm
Version: forma.lms 1.4

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

Post by murat » Sat Dec 31, 2016 2:33 am

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);

User avatar
murat
FormaLms Expert
Posts: 104
Joined: Fri Oct 12, 2012 6:28 pm
Version: forma.lms 1.4

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

Post by murat » Sat Dec 31, 2016 2:35 am

also,
htacces old allow tiny_mce_gzip\.php| "
you can change allow like this : tinymce.gzip\.php| "

jasmines
FormaLms Master
Posts: 277
Joined: Fri May 03, 2013 12:29 pm

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

Post by jasmines » Mon Jan 02, 2017 9:43 am

Do you know the meaning of 404 error? It's not htaccess issue.

jasmines
FormaLms Master
Posts: 277
Joined: Fri May 03, 2013 12:29 pm

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

Post by jasmines » Mon Jan 02, 2017 9:45 am

There is no plugins/emotions/plugin.min.js in the zip you attached.

User avatar
murat
FormaLms Expert
Posts: 104
Joined: Fri Oct 12, 2012 6:28 pm
Version: forma.lms 1.4

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

Post by murat » Sat Jan 07, 2017 8:30 pm

Hi Jasmines,

I created a demo site for you.

You can test http://formalms.tk

user informations;
username: admin
Password: demo123

jasmines
FormaLms Master
Posts: 277
Joined: Fri May 03, 2013 12:29 pm

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

Post by jasmines » Sun Jan 08, 2017 12:04 pm

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 » Tue Feb 07, 2017 3:01 pm

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 » Tue Feb 14, 2017 4:30 am

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