Ask Your Question

wmd editor failed when askbot is working from an iframe

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

Zhiz0id's avatar

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

Evgeny's avatar

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


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's avatar Evgeny  ( 2011-05-31 18:04:50 -0500 )edit
Ok, thanks! Думаю у меня будет много вопросов и заодно подтяну english. :)
Zhiz0id's avatar Zhiz0id  ( 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's avatar Evgeny  ( 2011-05-31 18:14:14 -0500 )edit
Do you have a demo for your project? Just curious.
Evgeny's avatar Evgeny  ( 2011-05-31 18:32:19 -0500 )edit
At this moment it is just a plain install + auto authorization(when running from social network and some minor changes.You can see iframe part there . After redesign I will test it under heavy load (100k+ unique users per day). nginx+tornado+askbot+?(maybe cassandra)
Zhiz0id's avatar Zhiz0id  ( 2011-05-31 18:36:41 -0500 )edit

1 Answer

Sort by » oldest newest most voted

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

Zhiz0id's avatar

The simplest fix is by use pagedown

It is modification of the wmd with fixed IFrame problem.

edit flag offensive delete link more


Is there a reason Askbot is not using pagedown?

mether's avatar mether  ( 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's avatar Evgeny  ( 2011-09-04 08:07:28 -0500 )edit

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's avatar mether  ( 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


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

Seen: 312 times

Last updated: Sep 03 '11