Code Monkey home page Code Monkey logo

Comments (7)

bramley avatar bramley commented on June 30, 2024

I don't quite understand what you mean by
'The editor is blank because the path is set to relative "plugins/..." in the html code of the page.'

but suggest you change PLUGIN_ROOTDIR to be an absolute path rather than a relative path.
Depending on your directory structure it might be something like
/home/xxx/public_html/plugins

from phplist-plugin-ckeditor.

bramley avatar bramley commented on June 30, 2024

I moved my plugin directory up one level and changed the plugin rootdir to be "../plugins" and the editor still seems to work. You will need to explain more clearly what is not working.

from phplist-plugin-ckeditor.

julienlusson avatar julienlusson commented on June 30, 2024

phpList is installed in the "root" of the website, so admin folder is: http://my.website.com/admin/
I've created a "new" plugins folder in the root folder and a documents folder: http://my.website.com/plugins/ & http://my.website.com/documents/

phpList "config.php" parameters:
$pageroot = '';
define("PLUGIN_ROOTDIR","/var/www/my.website.com/web/plugins");
define('UPLOADIMAGES_DIR',"/var/www/my.website.com/web/documents");

With those values, the editor doesn't work. With the change I've mentionned before it works, but KCFinder doesn't work. I've change with : $_SESSION['KCFINDER']['uploadURL'] = "http://my.website.com/documents";
It's not "good" but for now, it works.

from phplist-plugin-ckeditor.

bramley avatar bramley commented on June 30, 2024

With that definition of PLUGIN_ROOTDIR, do other plugins work?
On the Settings page, Config > Settings, check the values within 'composition settings' that are shown for the path to CKEditor and ptath to KCFinder.

UPLOADIMAGES_DIR needs to be a web path,not a file system path, see the advice in config.php:
... the directory is relative to the webserver root directory

Apart from these suggestions, I can't repeat your problem even after moving phplist to the root of the web site, so I am using urls like http://strontian/admin/?page=send&id=9 with the plugin directory defined as
define("PLUGIN_ROOTDIR","../plugins");

from phplist-plugin-ckeditor.

julienlusson avatar julienlusson commented on June 30, 2024

It is the only plugin I use on v3 for now, so I can't say if the other plugins works.

Composition settings :
path to CKeditor: plugins/CKEditorPlugin/ckeditor
path to KCFinder: plugins/CKEditorPlugin/kcfinder

If I change with:
path to CKeditor: /plugins/CKEditorPlugin/ckeditor
path to KCFinder: /plugins/CKEditorPlugin/kcfinder
It's OK.

I've changed the UPLOADIMAGES_DIR, I've misread the example, with "documents", it works

But it's a last "problem": in the sent email, links to the files are not good. For example, it's "/documents/image.jpg" instead of "http://my.website.com/documents/image.jpg". How can I correct that ?

from phplist-plugin-ckeditor.

bramley avatar bramley commented on June 30, 2024

I thought that absolute urls were being generated but it doesn't seem so now.
Can you see this forum post about how to remedy that http://forums.phplist.com/viewtopic.php?f=36&t=39471&p=96810#p96810

from phplist-plugin-ckeditor.

bramley avatar bramley commented on June 30, 2024

Absolute urls are generated in core phplist, sendemaillib.php.

from phplist-plugin-ckeditor.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.