Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image tinyMCE
#1
Hi,
Sorry for my english, i am french Smile
I have a problem with TinyMCE. When i insert image in my page.
I see it in TinyMCE but i dont see it in my web site.
What is the problem?

Thx
Haplo37
Reply
#2
I encountered the same problem, if you give the complete URL of the image all is OK.
Reply
#3
I'm having the same problem, and when I type in the complete URL and hit save, it just reverts back to the short one.
Reply
#4
TinyMCE seems to be adding extra quotes to image tags.
see below for a simple inserted image.

Code:
<img height="80" width="80" alt="\"testing\"" src="\"../data/uploads/small.jpg\"" right;\="" style=""/>
My Github Repos: Github
Website: DigiMute
Reply
#5
Something is wrong with TinyMCE. When I edit the .xml file and add the URL, my images upload fine, but TinyMCE won't save my changes.
Reply
#6
problem is due to the insert code for the pages,

Code:
if(isset($_POST['post-content'])) { $content = htmlspecialchars($_POST['post-content'], ENT_QUOTES); }

if you remove the htmlspecialchars code everything still works fine and the images are fixed.

Code:
if(isset($_POST['post-content'])) { $content = $_POST['post-content']; }

do we need htmlspecialchars if were using CDATA in the XML files ??
Don't knwo too much about XML but from what I''ve read, it should be fine as its all ignored by the parser.

All work fine without it....
My Github Repos: Github
Website: DigiMute
Reply
#7
Wait, making this correction doesn't work anymore!
At least for me.
I noticed, without this correction:
- toggle to HTML
- put the complete URL of the image
- then without preview (!!!) save page

the image displays correctly on the page.
If you look now at the html code, the URL is saved as path relative, but it works.

The strange is :
if you preview the page before saving it, doesn't work: no image displayed
If you put directly the path relative address, it doesn't work: no image displayed again.
Reply
#8
Preview is the wrong word for that button I now see. All it does is show you what is currently saved.

I have to either change that button name or find a way to do a true preview of the page before it is saved.

This also has nothing to do with tinymce. My fault- I shouldn't have named the button preview.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#9
ccagle8 Wrote:Preview is the wrong word for that button I now see. All it does is show you what is currently saved.

I have to either change that button name or find a way to do a true preview of the page before it is saved.

This also has nothing to do with tinymce. My fault- I shouldn't have named the button preview.

Ok, thanks to clarify the button function.

What is left is the issue concerning the image address.
Reply
#10
this can be sorted by setting

Code:
relative_urls:false

when initializing the tinyMCE control in edit.php

and removing the insert code as detailed above in my previous post.

When inserting images use full urls. (relative urls can be used but they won't show up in the tinyMCE preview or on the
tinyMCE edit page, but they will work.)

MIke.
My Github Repos: Github
Website: DigiMute
Reply
#11
Thanks Mike.. i have made the two changes you spoke of above, and they will be in the next release.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#12
hi,

does it work in this new release?

- alex
Reply
#13
haplo37 Wrote:Hi,
Sorry for my english, i am french Smile
I have a problem with TinyMCE. When i insert image in my page.
I see it in TinyMCE but i dont see it in my web site.
What is the problem?

Thx
Haplo37

agree, have this same problem
kotos.net - webdesign / dtp / graphics / photography
Reply
#14
I have the same problem... Show's in tinyMCE, but not on page.
Reply
#15
this tinymce is starting to be a real pain. Sorry everyone... I will work on getting this fixed.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#16
I missed Mike's response up above where he gave the fix for this. I've included this going forward... thanks Mike!
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#17
Well,
Code:
relative_urls:false
"repairs" the path of the images in tinyMCE, it is adding /admin to the path Sad . After updating to 1.7 this was driving me mad. I have set it back to true, choosing the lesser of the two evils.

haplo37 Wrote:Hi,
Sorry for my english, i am french Smile
Sorry for my english, i am german Wink
Reply
#18
Sanddorn Wrote:
haplo37 Wrote:Hi,
Sorry for my english, i am french Smile
Sorry for my english, i am german Wink

Hmm ok... I'll bite.
Sorry for my english, i am american Wink
Reply
#19
Hi there, I am spanish... may I play with you Wink

I need some help with tinyMCE.
Sorry if it is a st99pid question :-S
I have v1.71 installed.
On creating page content, click on "Insert/Edit Image" and I get only the option for full "Image URL" ... Shouldn't it have and "Image List" option or something for picking up existing images?
Reply
#20
forgot subscribing to topic..

anyway , andaluzian regards
Reply
#21
focoves Wrote:Shouldn't it have and "Image List" option or something for picking up existing images?
I think this is more a request to tinyMCE than GetSimple right? If tinyMCE doesn’t support this I dont see why Chris should go out of his way to add it.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#22
sorry, I am a bite newbie on this.
I have check this link http://tinymce.moxiecode.com/examples/office.php that is an example of tiniMCE , and the "Insert Image" shows the "image list" drop-down-list ..

the examples of versions full, office and compress, have this feature.

is it because another version? or a not-too-updated one?
anyway, is it posssible to modify the tinyMCE interface inside of GS ?

Thanks a lot for your help
Reply
#23
focoves Wrote:the "Insert Image" shows the "image list" drop-down-list ..
Al right, I pull back my previous comment in that case. Would seem Chris just needs to implement it then.

focoves Wrote:anyway, is it posssible to modify the tinyMCE interface inside of GS ?
You have access to all the code, so in theory you can modify whatever you want. Just find the tinyMCE files in the admin folder and change them to your liking.
“Don’t forget the important ˚ (not °) on the a,” says the Unicode lover.
Help us test a key change for the core! ¶ Problems with GetSimple? Be sure to enable debug mode!
Reply
#24
Bump. TinyMCE adds /admin/ to image path. I'm running 1.71
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply
#25
I fixed my admin editor issue by making changes (bold)
I'm sure there is a way for the script to fix it automatically, but this is what I needed to do to get the site to show images in the editor and on the site.

admin/edit.php file
________________________________

// Theme options
theme_advanced_buttons1 : "formatselect,bold,italic,underline,justifyleft,justifycenter,justifyright,bullist,numlist,link,unlink,image,cleanup,removeformat",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
relative_urls: false,
remove_script_host : false,
document_base_url : "http://domain.com/"
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply




Users browsing this thread: 46 Guest(s)