**SOLVED**CKeditor plugin path bug?

haakoo
Ssr. Bludit
Posts: 14
Joined: Mon Sep 14, 2015 12:43 pm

Hi,

My name is Hans and a new user of your blog/cms system which I like so far.
Running it local to test out all the features.

Tried CKeditor+KCfinder plugin and editing is working like a charm.
But the path for images doesn't seem to be right.
Steps:
1- uploaded with KCfinder
2- select image>it will show in the editor as it should>shows a relative path to the image>
save page/post
3- when viewing the page images don't show
Looked at page source and found the path is doubling up like;

Code: Select all

<p><img alt="" src="/projects/bludit/content/uploads//projects/bludit/content/uploads/images/Eye2.png" style="height:33px; width:33px" />
Last edited by haakoo on Tue Sep 15, 2015 9:54 pm, edited 1 time in total.
User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

Hi haakoo,

What image path do you have in your file => content/pages/yourpage.txt ?

I have the same problem, i think the base is added automatically by Bludit, i don't have this bug in older version....
Diego do you confirm ?
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
haakoo
Ssr. Bludit
Posts: 14
Joined: Mon Sep 14, 2015 12:43 pm

Hi,

It shows normal eg. /projects/bludit/content/uploads/images/Eye2.png

Hans
haakoo
Ssr. Bludit
Posts: 14
Joined: Mon Sep 14, 2015 12:43 pm

Call me stupid but shouldn't the kcfinder be an internal plugin for ckeditor?

Maybe there should be a path setting in the settings/advanced page
or you might consider a complete different filemanager for the ckeditor like http://www.responsivefilemanager.com/index.php

Hans
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

Hi,
I don't know how works CKeditor, but for insert an imagen on Bludit you need to upload the image in

Code: Select all

/content/uploads/
then the HTML code in the post will be

Code: Select all

<img src="image.jpg" alt="test">
, and then Bludit will be parse this and complete with the absolute path.

http://docs.bludit.com/en/content/how-t ... t-an-image

Diego
User avatar
diego
Site Admin
Posts: 773
Joined: Sat May 16, 2015 2:53 pm
Been thanked: 1 time
Contact:

I moved the topic to General, because the category "Themes and Plugins" is for publish plugins and themes :D
haakoo
Ssr. Bludit
Posts: 14
Joined: Mon Sep 14, 2015 12:43 pm

Actual its better to move it to the plugin post http://forum.bludit.org/viewtopic.php?f=14&t=35
But its your call as admin to decide where it should be :)
It's a habit on another forum to adress bugs/issues/requests in the thread of the actual post about the theme or plugin

About the image issue,
I guess the path is stored as a variable when the blog starts?
Maybe ckeditor or KCfinder also stores a variable of the path?

Hans
User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

@Hans, i found a issue.
I update the plugin quickly with responsive manager (i prefer, thx).
╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
haakoo
Ssr. Bludit
Posts: 14
Joined: Mon Sep 14, 2015 12:43 pm

Hi,

Tested it once again,found if you put in absolute url to the image after you chose the image in KCfinder,it works.

It was first like : projects/bludit/content/uploads/images/Eye2.png

after link edit : http://127.0.0.1/projects/bludit/conten ... s/Eye2.png

Looking forward to the updated plugin with ResponsiveFileManager

Hans
User avatar
Fred
Legend Bludit
Posts: 236
Joined: Wed Jun 24, 2015 2:14 pm
Location: France
Contact:

╰☆╮Bludit╰☆╮ is a open source and community contributions are essential to project success!
You are looking for a light forum based Json? Try my project Flatboard, it is free. ;)
Sorry for my little english, i'm french :oops:
Post Reply