Posted on: 08/24/09 07:47am
By: BirdiePutt
Is it possible to use the ‘Insert/Edit Image’ button in the advanced editor to, well, insert an image?
I have tried it and this is what happens:
Create new story (the advanced editor is displayed by default)
Enter title
Select topic
Enter a few words in the Intro Text
Click on the Insert/Edit Image button
Up pops the image properties window
Click on Browse Server button
Up pops a window to select existing images (with options to create new folder or upload new files)
Select an existing image and immediately the window closes and goes back to the image properties window.
At this point the image is showing correctly in the Preview box.
When I click ok, the image properties box closes and the image is displayed in the Intro Text.
Click on Save and I see message ‘Your story has been successfully saved’ and takes me back to the list of stories.
So far it works. But…..
View story and I have the broken image/link icon instead of my image.
Go back into edit the story and again I have the broken image/link icon
Am I doing something wrong?
Any help would be appreciated.
I am using Geeklog 1.5.2sr4 on Ubuntu
Re: Inserting image in story using advanced editor
Posted on: 08/24/09 08:08am
By: Dirk
What's the URL of the actual image (i.e. in the saved story) that it's trying to display? Is that URL correct?
bye, Dirk
Re: Inserting image in story using advanced editor
Posted on: 08/24/09 08:17am
By: BirdiePutt
Switching to Source view......
When I am creating the story the link is:
<p><img height="32" width="32" alt="" src="http://intranet/images/library/image/pdf.gif" /></p>
When I go back to edit the story the link is:
<p><img alt="" /></p>
Thanks
Re: Inserting image in story using advanced editor
Posted on: 08/24/09 09:17am
By: Dirk
I take it you added the img tag to the list of allowed HTML? You will also have to add the width, height, and src attributes as allowed attributes to the img tag.
In the Configuration, click on the (+) button behind the img tag (in the same line), then use "Add Element" to add the required attributes.
As of Geeklog 1.6.0 this is all done automatically (again) when you enable FCKeditor - that was a bug in 1.5.x.
bye, Dirk
Re: Inserting image in story using advanced editor
Posted on: 08/24/09 09:30am
By: BirdiePutt
Perfect!
I added the attributes under the img tag (which was already there) and it works perfect.
Thanks for your help and keep up the good work.