Ask Your Question
1

wmd editor failed when askbot is working from an iframe

asked 2011-05-31 17:58:26 -0500

Zhiz0id gravatar image

updated 2011-05-31 18:16:37 -0500

Evgeny gravatar image

I am trying to use Askbot as part of social app which is working from an iframe.

Wmd just don't working. I was trying to replace "top" on "this" in wmd.js but without luck.

p.s. Вопросы на русском приветствуются?

edit retag flag offensive close merge delete

Comments

You are welcome to ask in Russian, I will translate to english (if it is not too long) as well and answer in English.
Evgeny gravatar imageEvgeny ( 2011-05-31 18:04:50 -0500 )edit
Ok, thanks! Думаю у меня будет много вопросов и заодно подтяну english. :)
Zhiz0id gravatar imageZhiz0id ( 2011-05-31 18:07:58 -0500 )edit
No problems. Regarding your question - well I can only suggest you to debug the wmd script in firebug... Unfortunately I don't have the time to experiment on this right now, would be awesome if you could find the answer yourself and tell us :).
Evgeny gravatar imageEvgeny ( 2011-05-31 18:14:14 -0500 )edit
Do you have a demo for your project? Just curious.
Evgeny gravatar imageEvgeny ( 2011-05-31 18:32:19 -0500 )edit
At this moment it is just a plain install + auto authorization(when running from social network vkontakte.ru) and some minor changes.You can see iframe part there http://four.you-ra.info . After redesign I will test it under heavy load (100k+ unique users per day). nginx+tornado+askbot+?(maybe cassandra)
Zhiz0id gravatar imageZhiz0id ( 2011-05-31 18:36:41 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2011-09-03 02:19:48 -0500

Zhiz0id gravatar image

The simplest fix is by use pagedown

It is modification of the wmd with fixed IFrame problem.

edit flag offensive delete link more

Comments

Is there a reason Askbot is not using pagedown?

mether gravatar imagemether ( 2011-09-04 00:47:57 -0500 )edit

The editor has been customized for askbot - to support i18n and some additional functions were added - possibility to enter LaTex, uploading of file attachments... We'd need to port those functions into pagedown first.

Evgeny gravatar imageEvgeny ( 2011-09-04 08:07:28 -0500 )edit
1

If pagedown is actively maintained, might consider pushing changes to it instead of all of these enhancements being only inside Askbot and therefore less visible/benefit to everyone else. Might make maintenance easier going forward. Javascript libraries are way too fragmented already.

mether gravatar imagemether ( 2011-09-04 12:28:10 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2011-05-31 17:58:26 -0500

Seen: 172 times

Last updated: Sep 03 '11