TinyMCE and Embedded graphics files

Install and configure FormaLMS and DoceboCE
Post Reply
mlapl1
FormaLms User
Posts: 72
Joined: Fri Mar 13, 2015 1:24 pm
Version: forma.lms 1.4.2

TinyMCE and Embedded graphics files

Post by mlapl1 » Thu Feb 01, 2018 5:13 pm

I am encountering a strange error. I have the latest version of formalms. I am able to embed a graphic inside files created with the tinymce editor and it appears correctly. However, if I want to display, say, the webpage that contains it, then the graphic does not appear. On inspection, it turns out that the path to the file is wrong. Instead of being http://xyz.com/forma/file/xxxxxxx .. the path is set as: http://xyzz.com/file/...... In other words, the file is registered in a location to which it does not belong. How can I make sure that tinymce knows the correct path and allocates it correctly?

EDIT: I notice that if the web page is identified as the default page then the graphic appears.

Thank you.
Andrew
Andrew Lian

User avatar
max
FormaLms Guru
Posts: 1851
Joined: Thu Mar 01, 2012 10:41 am

Re: TinyMCE and Embedded graphics files

Post by max » Sat Feb 03, 2018 11:52 am

Hi Andrew,

maybe it doesn't have to do with TinyMCE, there is no need to configure anything on that side. Url paths are formed according to the url that you set as default url of your system. So, maybe there is some misalignment between the url you are using and the one that you set as Forma's default url.

Check under administration>main>configuration>settings>system configuration, and look for the URL field.
---------------------
Massimiliano Ferrari
Elearnit - Elearning e Knowledge Management
http://www.elearnit.net
http://www.linkedin.com/in/massimilianoferrari
m.ferrari[at]elearnit.net
http://elearnit.wordpress.com
Skype: m_ferrari_it

mlapl1
FormaLms User
Posts: 72
Joined: Fri Mar 13, 2015 1:24 pm
Version: forma.lms 1.4.2

Re: TinyMCE and Embedded graphics files

Post by mlapl1 » Sat Feb 03, 2018 4:31 pm

Thank you Max. I will check. Everything else seems ok though.
Andrew Lian

mlapl1
FormaLms User
Posts: 72
Joined: Fri Mar 13, 2015 1:24 pm
Version: forma.lms 1.4.2

Re: TinyMCE and Embedded graphics files

Post by mlapl1 » Sat Feb 03, 2018 4:54 pm

Hello again Max

I could not find administration>main>configuration>settings>system configuration BUT I used
administration>main>configuration>settings>Main Options
There I could only find: Website URL with final / . This was followed by the correct URL for the website - I don't see any other place to specify the URL path.

The problem only seems to appear with webpages created under Elearning >> Contents >> Webpages and the problem exists with pages NOT designated as default homepage. If I edit the pages, the graphic is present.

I agree that it is unlikely to be Tiny MCE's problem.
Andrew Lian

User avatar
canelli
FormaLms Guru
Posts: 469
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: TinyMCE and Embedded graphics files

Post by canelli » Mon Feb 05, 2018 10:16 am

Hi Andrew
in what version of forma.lms you experience the problem ?
have you changed or upgrade TinyMCE in your forma.lms version ?

Claudio
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------

mlapl1
FormaLms User
Posts: 72
Joined: Fri Mar 13, 2015 1:24 pm
Version: forma.lms 1.4.2

Re: TinyMCE and Embedded graphics files

Post by mlapl1 » Mon Feb 05, 2018 1:01 pm

Hello Claudio

It is the very latest stable forma (I have only been playing with it for a couple of weeks in its present form). I have touched nothing in TinyMCE and from the fact that the problem occurs only in external web pages created inside forma (and not the home page for any course) I suspect it is a forma problem, not a tinyMCE problem (a path problem I suspect). I am using a theme which is a copy of the standard theme with a different logo and thought I might have broken something so went back to the standard theme but the same thing happens. I have not tried the old docebo theme yet - but may do so. As far as paths are concerned there seems to be only one place to set it and that is in the main configuration area.
Andrew Lian

User avatar
canelli
FormaLms Guru
Posts: 469
Joined: Thu Nov 08, 2012 12:21 pm
Version: forma.lms 2.0
Contact:

Re: TinyMCE and Embedded graphics files

Post by canelli » Mon Feb 05, 2018 4:21 pm

I have not tried the old docebo theme yet - but may do so
The old docebo theme is in the package for historical reason and it is not mantained . I think it not work well with forma since version 1.2 .
we will drop in next release.
As far as paths are concerned there seems to be only one place to set it and that is in the main configuration area.
Yes, there is only one place to set the "base url path" and if this path is correct in other places where is used (as in email) the configuration is OK.
I suspect it is a forma problem, not a tinyMCE problem
Also for me is a forma.lms bug. Perhaps forma.lms builds the wrong path when creating the html for the webpages or sends the wrong path to tinyMCE. I assume you run forma.lms version 1.4.x
We will open a bug but I'm not sure we will resolve it in 1.x series . Version 1.x will be updated only for secuirty fix

Claudio
Cercate nel forum le riposte prima di chiedere. Check the forum before posting
---------------
Claudio Anelli
Joint Technologies - Sistemi avanzati per l'information technology

http://www.joint-tech.com
---------------

mlapl1
FormaLms User
Posts: 72
Joined: Fri Mar 13, 2015 1:24 pm
Version: forma.lms 1.4.2

Re: TinyMCE and Embedded graphics files

Post by mlapl1 » Mon Feb 05, 2018 4:38 pm

Thank you, Claudio. Yes, I am running the latest stable version of forma. Downloaded and installed a few days ago.
Andrew
Andrew Lian

Post Reply