Hello folks, 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?