Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » Django
  • » including emotion images using tinyMCE [RSS Feed]

#1 Dec. 19, 2010 06:36:00

f.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

including emotion images using tinyMCE


Just setup my django project to use tinyMCE (version 3.3.9.2).
Everything works fine except the emotion plugin (smily faces). When a
smily is inserted, tinyMCE insert an image using relative paths. An
example is shown here,

<img title="Cool" src="../../static_media//tiny_mce/plugins/emotions/
img/smiley-cool.gif" border="0" alt="Cool" />

The problem is this relative path cannot be recognised by django when
viewing the content submitted by tinyMCE. I could change the
javascript in tinyMCE to use {{ MEDIA_URL }} for generating image
path. However the image won't be displayed while editing because the
content are dynamically inserted and are not rendered by django yet.

Are there other solutions for this problem.

Thanks!
Fei

--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

  • Root
  • » Django
  • » including emotion images using tinyMCE [RSS Feed]

Board footer

Moderator control

Enjoy the 17th of August
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support