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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
updated 14 years ago
Zhiz0id's avatar
58
Zhiz0id
asked 14 years ago

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 (14 years ago)
Ok, thanks! Думаю у меня будет много вопросов и заодно подтяну english. :)
Zhiz0id's avatar Zhiz0id (14 years ago)
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 (14 years ago)
Do you have a demo for your project? Just curious.
Evgeny's avatar Evgeny (14 years ago)
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 (14 years ago)
btw have you seen this project hashcode.ru ? I am not sure, but it looks like askbot.
Zhiz0id's avatar Zhiz0id (14 years ago)
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 (14 years ago)
"then slit off" - why?
Zhiz0id's avatar Zhiz0id (14 years ago)
it happens :). Plus I want to make my own business with it.
Evgeny's avatar Evgeny (14 years ago)
Is there any differences in projects ? I mean major differences ?
Zhiz0id's avatar Zhiz0id (14 years ago)
see more comments

1 Answer

0

The simplest fix is by use pagedown

It is modification of the wmd with fixed IFrame problem.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Zhiz0id's avatar
58
Zhiz0id
answered 13 years ago
link

Comments

Is there a reason Askbot is not using pagedown?

mether's avatar mether (13 years ago)

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 (13 years ago)
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 (13 years ago)
see more comments