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
btw have you seen this project hashcode.ru ? I am not sure, but it looks like askbot.
Zhiz0id's avatar Zhiz0id (2011-05-31 18:43:46 -0500) edit
it is based on osqa and seems to be customized. askbot and osqa originate from the same code base - cnprog, written in chinese. I have internationalized the cnprog and translated to English, also I myself worked on osqa in the beginning, then split off.
Evgeny's avatar Evgeny (2011-05-31 18:53:24 -0500) edit
"then slit off" - why?
Zhiz0id's avatar Zhiz0id (2011-05-31 18:58:28 -0500) edit
it happens :). Plus I want to make my own business with it.
Evgeny's avatar Evgeny (2011-05-31 19:00:28 -0500) edit
Is there any differences in projects ? I mean major differences ?
Zhiz0id's avatar Zhiz0id (2011-05-31 19:18:20 -0500) edit
I've spent 8 months on this project before osqa started, so wanted to continue to lead it. In the near future I will be working on this full time.
Evgeny's avatar Evgeny (2011-05-31 19:18:23 -0500) edit
Sorry looks like we have posted nearly at the same time. The biggest difference is that askbot is quite well tested, there are > 400 test cases, while in osqa there were not any last time I checked. There are features that osqa does not have - user inbox, notification envelope, "follow user", and more advanced search. There are some features that askbot does not have. But the list changes with time. Askbot ships as an app, while osqa is a dedicated site. OSQA seems to be a side project for DZone, while askbot is my main project.
Evgeny's avatar Evgeny (2011-05-31 19:25:50 -0500) edit
Thanks! Very interesting! Main problem for me is cheap scale. I am not sure, but looks like bottleneck is sql db backend.(but I understand that this problem isn't main for your project :) )
Zhiz0id's avatar Zhiz0id (2011-05-31 19:30:42 -0500) edit
There will be work on scaling actually later in the summer. Reads, especially anonymous, are much easier to scale than writes.
Evgeny's avatar Evgeny (2011-05-31 19:42:00 -0500) edit
btw, do you know chinese?
Zhiz0id's avatar Zhiz0id (2011-05-31 19:42:08 -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