The Elearning Community • FORMALMS - tinymce text editor upgrade and moxiecut plugin install
Page 1 of 1

FORMALMS - tinymce text editor upgrade and moxiecut plugin install

Posted: Sun Dec 25, 2016 3:27 pm
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

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

Posted: Tue Dec 27, 2016 4:23 pm
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

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

Posted: Sat Dec 31, 2016 2:33 am
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);

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

Posted: Sat Dec 31, 2016 2:35 am
by murat
also,
htacces old allow tiny_mce_gzip\.php| "
you can change allow like this : tinymce.gzip\.php| "

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

Posted: Mon Jan 02, 2017 9:43 am
by jasmines
Do you know the meaning of 404 error? It's not htaccess issue.

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

Posted: Mon Jan 02, 2017 9:45 am
by jasmines
There is no plugins/emotions/plugin.min.js in the zip you attached.

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

Posted: Sat Jan 07, 2017 8:30 pm
by murat
Hi Jasmines,

I created a demo site for you.

You can test http://formalms.tk

user informations;
username: admin
Password: demo123

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

Posted: Sun Jan 08, 2017 12:04 pm
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?

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

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

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

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

This site uses cookies.

Some of the cookies we use are essential for parts of the site to operate and have already been set. We also use Google Analytics scripts, which all use cookies.
You may delete or block all cookies from this site in your browser options.