-
Notifications
You must be signed in to change notification settings - Fork 641
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor #9
Comments
I support the idea that Markdown Only rather than WYSIWYG. I'm a frontend. What can I do for you? |
I would like to have both (bbcode and markdown) options. So the admin can choose when creating the forum which markup language he wants to use. What do you think about that? |
I'm blueprinting a forum for tech/geek, so I'd like to force the users to use markdown only. Having options is always better suiting general purpose forums. |
I really like SCEditor. In order to pick that up the python side would have to include a bbcode parser as well (since SCEditor doesn't parse BBCode client side). I'm thinking all you'd have to do is update the assets for their CSS/JS, add in the JQuery constructor for the editor, add the data-attribute to the form, and parse the content after POST (bbcode.render_html(self.content.data)) and make sure the escaping is done properly on display. I'll create a pull request if I get a chance to play with this more, for reference here's the libs I was thinking: http://www.sceditor.com/documentation/getting-started/ |
Ok, keep me updated on this. :) |
Took a quick crack at implementing it, here's what I have so far: https://github.com/manistal/flaskbb/tree/editor A couple issues I ran into: Quick notes about the serverside bbcode parsing: |
We are already using a bbcode parser btw (postmarkup) and the markup rendering thing is done here: https://github.com/sh4nks/flaskbb/blob/master/flaskbb/utils/helpers.py#L284-L293 and maybe it would be better to just add the static files (css/js) for the editor to just those files where it is needed :)
i think removing the tags from the editor is the best idea. btw, i suck at css and js too, thats way i have never implemented this |
Haven't had a chance to clean everything up yet, but thanks for the heads up on the bbcode parser! I didn't even look through the utils like I should've. I'll try and clean everything up and get you a solid branch of the fork to take a look at and decide if you like how the editor fits. |
I have played a bit with the javascript editors (TinyMCE, MarkItUp, SCEditor) but I couldn't get familar with any of them.. I want a really simple editor like http://toopay.github.io/bootstrap-markdown. It doesn't needs to be WYSIWYG editor. But I actually have no knowledge in javascript to write one :/
The text was updated successfully, but these errors were encountered: