Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Markdown support #24

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Markdown support #24

wants to merge 4 commits into from

Conversation

kiwiz
Copy link

@kiwiz kiwiz commented Aug 14, 2014

  • Markdown support
  • Prompt when unsaved changes

While this works, I'm not sure if this is the best approach. It might be better to stick all the configuration and logic inside base.php, as it'd be more likely that someone would implement a new provider/* than a new editor.

Thoughts?

kiwiz and others added 2 commits August 14, 2014 16:37
Also add a prompt when navigating away from a page with unsaved changes
@mrtazz mrtazz self-assigned this Aug 14, 2014
* This is a editor.
*/

class ExampleEditor {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like going overboard with OO principles but I think it makes sense to make an Editor interface here that classes have to implement.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quack quack. I like this. 👍

@@ -12,7 +12,8 @@
$report_id = generateWeeklyReportID($username, $range_start, $range_end);
$state = "final";
$report = mysql_real_escape_string($_POST['weeklyupdate']);
$query = "INSERT INTO generic_weekly (report_id, range_start, range_end, timestamp, user, state, report) VALUES ('$report_id', '$range_start', '$range_end', '$timestamp', '$username', '$state', '$report')";
$report_type = $_POST['editor'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we also wanna escape this?

@mrtazz
Copy link
Contributor

mrtazz commented Aug 28, 2014

lgtm, @lozzd wanna take a look here, since you know the overall architecture of the app better than me?

@mrtazz mrtazz assigned lozzd and unassigned mrtazz Sep 15, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants