[Solved] Adding an image while writing a page?

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
simon_a
Forum Members
Forum Members
Posts: 26
Joined: Wed Oct 01, 2008 8:42 am

[Solved] Adding an image while writing a page?

Post by simon_a »

Hi,

is it possible upload a new image while writing a page, or do I have to first use the Image Manager, and then start writing the content?

Simon
Last edited by simon_a on Mon Oct 13, 2008 9:02 am, edited 1 time in total.
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Adding an image while writing a page?

Post by Russ »

Image Manager first, although you could open two browser tabs onto the Admin program and have one for writing and one for image Manager?
simon_a
Forum Members
Forum Members
Posts: 26
Joined: Wed Oct 01, 2008 8:42 am

Re: Adding an image while writing a page?

Post by simon_a »

Ok, thanks for that Russ. Not as intuitive as other systems that I have used, but I'm not complaining  :P
Connie

Re: Adding an image while writing a page?

Post by Connie »

you can use FCKEditorX module and using that you can include or upload and include images for sure and very easy
simon_a
Forum Members
Forum Members
Posts: 26
Joined: Wed Oct 01, 2008 8:42 am

Re: Adding an image while writing a page?

Post by simon_a »

Thanks Connie. I installed FCKEditorX, but it's showing up strangely, the toolbar is just some messed up text. It's probably incompatible with the lastest CMSMS.
Connie

Re: Adding an image while writing a page?

Post by Connie »

it is not at all
but somewhere in the forum is written already and I wrote it as well, but forgot to tell you:

edit the editor configuration and set a width and height in pixel, do not keep "default" there

so will get the magic FCKEditor and you can integrate images very comfortabley with that editor
simon_a
Forum Members
Forum Members
Posts: 26
Joined: Wed Oct 01, 2008 8:42 am

Re: Adding an image while writing a page?

Post by simon_a »

As a follow-up, I hacked together a solution using the simple javascript mentioned here:
http://tinymce.moxiecode.com/punbb/view ... p?id=11640

Code: Select all

I wrote our own image manager completely outside of TinyMCE. I call it from within the image.htm file by adding this line:

<a href="path/to/my/filemanagerapp.aspx" onClick="window.open('path/to/my/filemanagerapp.aspx', 'imageBrowse', 'toolbar=no,location=no,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=no,width=600,height=650');return false;" title="Browse or Upload image">upload/select an image</a>

And then I send the particular image back to TinyMCE via this:

<a href="javascript:;" onclick="window.opener.document.getElementById('src').value='/path/to/my/image.gif';javascript:window.close();">
image.gif
</a>
Locked

Return to “[locked] Installation, Setup and Upgrade”