|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
I am using pasteHTML to insert an img tag into a WYSIWYG editor. It works great, except I specifically tell it to use the absolute address...
editor_obj.pasteHTML('<img src=\'http://www.domain.com/image_path.jpg\'>'); ...it trims off the absolute domain and uses "/" so it ends up like this: <img src="/image_path.jpg"> THAT IS SO ANNOYING!!! ANY IDEAS?? It must be the absolute image address because these things will go out in an email. I've tried tricking it by using HTML ISO 8859-1 character codes, but to no avail. HELP! ![]() |
|
#2
|
||||
|
||||
|
WYSIWYG frustration
Maybe it's a WYSIWYG bug or setting? You could hand-code, or at least hand-edit, your HTML page.
|
|
#3
|
|||
|
|||
|
Is it possible to get the image location into a string variable and use that string variable in the statement?
--------------------------------------- Programming ( Assignment / Project ) Help |
|
#4
|
||||
|
||||
|
image info as string
You could try hard coding the path and just pass the image file's name as a variable like:
Code:
<a href="http://www.yourDomain.com/" + imgVar + " />"; or in your case maybe like Code:
editor_obj.pasteHTML('image_path.jpg');
I'm not familiar with how or why a WYSIWYG would truncate your variable. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > pasteHTML - IRRITATING PROBLEM |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|