First time here? Check out the FAQ!

Revision history  [back]

The previewer and the editor code is tied with the form, so if you are removing the form, the editor won't work.

There are two options: (1) - remove the editor, previewer and the form and replace them with your own, (2) keep everything and add your own fields to the form, and handle those extras with your own code.

You could modify appearance of the editor and the previewer by adjusting css.

The editor uses javascript from files

/js/editor.js #extra components used for the editor - text area resizer, file upload handler
/js/wmd/showdown.js #converts markdown to html for the previewer
/js/wmd/wmd.js #adds buttons and their functions to the editor.

which are inside directory askbot/skins/common/media

Also file askbot/skins/default/templates/meta/editor_data.html is used.

And that is in addition to the fact that the input source text is converted to html on with a python library called markdown2, showdown.js is used only for the previewer.

Not very simple and could be better. Possibly you will be better off with replacing that code with yours. Askbot would benefit from allowing to easily switch the editor.

I hope this helps.

The previewer and the editor code is tied with the form, so if you are removing the form, the editor won't work.

There are two options: (1) - remove the editor, previewer and the form and replace them with your own, (2) keep everything and add your own fields to the form, and handle those extras with your own code.

You could modify appearance of the editor and the previewer by adjusting css.

The editor uses javascript from files

/js/editor.js #extra components used for the editor - text area resizer, file upload handler
/js/wmd/showdown.js #converts markdown to html for the previewer
/js/wmd/wmd.js #adds buttons and their functions to the editor.

which are inside directory askbot/skins/common/media

Also file askbot/skins/default/templates/meta/editor_data.html is used.

And that is in addition to the fact that the input source text is converted to html on with a python library called markdown2, showdown.js is used only for the previewer.markdown2.

Not very simple and could be better. Possibly you will be better off with replacing that code with yours. Askbot would benefit from allowing to easily switch the editor.

I hope this helps.

The previewer and the editor code is tied with the form, so if you are removing the form, the editor won't work.

There are two options: (1) - remove the editor, previewer and the form and replace them with your own, (2) keep everything and add your own fields to the form, and handle those extras with your own code.

You could modify appearance of the editor and the previewer by adjusting css.

The editor uses javascript from files

/js/editor.js #extra components used for the editor - text area resizer, file upload handler
/js/wmd/showdown.js #converts markdown to html for the previewer
/js/wmd/wmd.js #adds buttons and their functions to the editor.
/js/editor.js
/js/wmd/showdown.js
/js/wmd/wmd.js

which are inside directory askbot/skins/common/media

Also file askbot/skins/default/templates/meta/editor_data.html is used.

And that is in addition to the fact that the input source text is converted to html on with a python library called markdown2.

Not very simple and could be better. Possibly you will be better off with replacing that code with yours. Askbot would benefit from allowing to easily switch the editor.

I hope this helps.

The previewer and the editor code is tied with the form, so if you are removing the form, the editor won't work.

There are two options: (1) - remove the editor, previewer and the form and replace them with your own, (2) keep everything and add your own fields to the form, and handle those extras with your own code.

You could modify appearance of the editor and the previewer by adjusting css.

The editor uses javascript from files

/js/editor.js
/js/wmd/showdown.js
/js/wmd/wmd.js

which are inside directory askbot/skins/common/media

Also file askbot/skins/default/templates/meta/editor_data.html is used.

And that is in addition to the fact that the input source text is converted to html on with a python library called markdown2.

Not very simple and could be better. Possibly you will be better off with replacing that code with yours. Askbot would benefit from allowing to easily switch the editor.