Page 1 of 1

TinyMCE and Embedded graphics files

Posted: Thu Feb 01, 2018 5:13 pm
by mlapl1
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

Re: TinyMCE and Embedded graphics files

Posted: Sat Feb 03, 2018 11:52 am
by max
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.

Re: TinyMCE and Embedded graphics files

Posted: Sat Feb 03, 2018 4:31 pm
by mlapl1
Thank you Max. I will check. Everything else seems ok though.

Re: TinyMCE and Embedded graphics files

Posted: Sat Feb 03, 2018 4:54 pm
by mlapl1
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.

Re: TinyMCE and Embedded graphics files

Posted: Mon Feb 05, 2018 10:16 am
by canelli
Hi Andrew
in what version of forma.lms you experience the problem ?
have you changed or upgrade TinyMCE in your forma.lms version ?

Claudio

Re: TinyMCE and Embedded graphics files

Posted: Mon Feb 05, 2018 1:01 pm
by mlapl1
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.

Re: TinyMCE and Embedded graphics files

Posted: Mon Feb 05, 2018 4:21 pm
by canelli
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

Re: TinyMCE and Embedded graphics files

Posted: Mon Feb 05, 2018 4:38 pm
by mlapl1
Thank you, Claudio. Yes, I am running the latest stable version of forma. Downloaded and installed a few days ago.
Andrew