First time here? Check out the FAQ!
1

wmd editor failed when askbot is working from an iframe

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. Вопросы на русском приветствуются?

Evgeny's avatar
13.2k
Evgeny
updated 2011-05-31 18:16:37 -0500
Zhiz0id's avatar
58
Zhiz0id
asked 2011-05-31 17:58:26 -0500
edit flag offensive 0 remove flag 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'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 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's avatar Zhiz0id (2011-05-31 18:36:41 -0500) edit
add a comment see more comments

1 Answer

0

The simplest fix is by use pagedown

It is modification of the wmd with fixed IFrame problem.

Zhiz0id's avatar
58
Zhiz0id
answered 2011-09-03 02:19:48 -0500
edit flag offensive 0 remove flag delete link

Comments

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
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's avatar mether (2011-09-04 12:28:10 -0500) edit
add a comment see more comments