Skip to content

PR 226 added editable descriptions#232

Open
4xdk wants to merge 10 commits intoPursuanceProject:developfrom
4xdk:PR-226-Added-editable-descriptions
Open

PR 226 added editable descriptions#232
4xdk wants to merge 10 commits intoPursuanceProject:developfrom
4xdk:PR-226-Added-editable-descriptions

Conversation

@4xdk
Copy link
Collaborator

@4xdk 4xdk commented Jul 30, 2018

As per: #214
Supports saving to markdown and also writing markdown.
It's not perfect by any means, but I think it's a good starting point.

The one issue that I can't seem to figure out is how to make ReactMarkdown element process links and add this target="_blank" to external links.

class Wysiwyg extends Component {
componentWillMount() {
const {tasks: { taskMap }, taskGid, attributeName} = this.props,
attributeValue = taskMap[taskGid][attributeName],
Copy link
Contributor

Choose a reason for hiding this comment

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

@4xdk Got a more description variable name than attributeValue?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Well, this variable can hold any attribute value - depending on props passed to Wysiwyg element. I think generic variable name fits in this case.

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.

2 participants