Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Create MarkdownPreview component for edit pages - #36367

#36367
Merged
dmcavoy merged 2 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
preview-componentcode-dot-org/code-dot-org:preview-componentCopy head branch name to clipboard
Aug 20, 2020
Merged

Create MarkdownPreview component for edit pages#36367
dmcavoy merged 2 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
preview-componentcode-dot-org/code-dot-org:preview-componentCopy head branch name to clipboard

Conversation

@dmcavoy

@dmcavoy dmcavoy commented Aug 20, 2020

Copy link
Copy Markdown
Contributor

Follow up to #36363 and #36346. Creates a simple component for the markdown preview that can be used on editing pages. Looks the same as what is in those PRs just extracts out the logic into one place.

Testing story

-Updated ScriptEditorTest and CourseEditorTest
-Created test for MarkdownPreview

Reviewer Checklist:

  • Tests provide adequate coverage
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@dmcavoy
dmcavoy merged commit 8971146 into staging Aug 20, 2020
@dmcavoy
dmcavoy deleted the preview-component branch August 20, 2020 02:50

@uponthesun uponthesun left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Would it make more sense to include the textarea and event handler in this preview component, since that's also needed in each place? Or do we need the flexibility of configuring that separately?

dropdown: {
margin: '0 6px'
},
box: {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can this be removed now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.