ilosuna / phpsqlitecms

phpSQLiteCMS is a simple and lightweight web content management system based on PHP and SQLite.
phpsqlitecms.net
MIT License
138 stars 75 forks source link

Images `src` path in wysiwyg #19

Closed sim2github closed 9 years ago

sim2github commented 10 years ago

In example path to images is relative(starts with dot) <img src="./static/media/chaco_teaser.jpg"> but in WYSIWYG location is http://phpsqlitecms.com/cms/ so path to image is wrong - http://phpsqlitecms.com/cms/static/media/chaco_teaser.jpg.

VOOM108 commented 8 years ago

Why is this closed? Problem exists in current version...

I fixed this by adding to wysiwyg_init.js:

relative_urls : true,
document_base_url : "http://domain.tld/mycmsfolder",

sim2github commented 8 years ago

Your fix may be works with new created pages. I mean that paths not relative in documentation database supplied with installation.

Issue is closed due to lack of comment on it. Almost a year of silence.

VOOM108 commented 8 years ago

It is really too bad that the developer seems to have abandonded the projects. Espc. with some of your commits included it is a gread flexible base for small to medium projects, and it is easy to update Bootstrap etc. so I decided to use it even though it is abandoned. I figured that it runs nicely now on PHP7 and thus should make no core-trouble for quite some time.

sim2github commented 8 years ago

I would not advise to use it in production because of Vulnerabilities. So core development is steel needed. I think core must be totally rewrited - the question raised in #23 but not answered.

sim2github commented 8 years ago

Another project is steel develop core http://ritecms.com/. They use version 2 but difference from version 3 is only templates with bootstrap usage. I think, you can merge with they core to fix vulnerabilities.