Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 393681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:16:54+00:00 2026-05-12T16:16:54+00:00

I would appreciate if there is someone who can help me solve this problem,

  • 0

I would appreciate if there is someone who can help me solve this problem, I’ve been trying to resolve it for few days, but with no success.
I made custom button that inserts image into code, and here is textual version:

<a href="javascript:;" onmousedown="tinyMCE.execCommand('mceInsertContent',false,'<br><img alt=$img_title src=$link/img/sadrzaj/$file\>');">Insert Image</a>

Problem is that I’m not allowed to use quotes so I have to use alt=Some_value and quotes are added automaticly.
Problem comes when i enter value with space: alt=Some value and then only “Some” is entered while everything after whitespace is ignored. For src attribute it’s ok because it cant contain whitespaces, but for image description it would be very useful.
I can format string and put _ instead of whitespace but that’s not solution.

Any help, please?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:16:54+00:00Added an answer on May 12, 2026 at 4:16 pm

    Add a backslash (\) before the quotes you want to include.

    <a href="javascript:;" 
      onmousedown="tinyMCE.execCommand('mceInsertContent',false,'<br>
      <img alt=\'$img_title\' src=\'$link/img/sadrzaj/$file\' />');">Insert Image</a>
    

    This will allow you to include the script and the quotes without it breaking on you.

    The backslash just says to the code, “Don’t stop here, this quote does not signal the end of the code line. Just include this in the display output. Thanks.”

    Note that you will have to use single quotes (') around the IMG attributes.

    (Another thing: In XHTML, when self-closing a tag like IMG, you use the slash (/) and not the backslash.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

#foo { color:black; } Is there some sort of option to prefix a newline
Once again I need some help. I'm working with a table that contains 3
I am trying to get an sha-1 for a number of files. What I
I am working in PHP on a Linux server with MySQL. I have a
I have a multi-step form in which some of the fields are collecting sensitive
I'm implementing Apple's Reachibility class into my application. The app's base SDK is iOS
One of my homework questions asked to develop a regex for all strings over
I have a Flex Spark dropdownList in which I need to show the Provider
The situation is the following. I'm a private teacher with dozens of students. I
I am having difficulties with pages that have more than one <audio> when I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.