-
Notifications
You must be signed in to change notification settings - Fork 178
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
How can i update the editor, if i want to load other text #109
Comments
@langley2k , thanks for reporting. I'll look into it now |
Hey @andrerpena , any news on this? I can see that function is commented out |
Hey @andrerpena, how do ya? I'm facing the very same issue here; any news on this? |
@ythecombinator I'm working on #120 now... The value will be a simple text with only the markdown being passed as a parameter. This will hopefully solve this issue. |
For temporary, use this code for edit text in MdeEditor.. It is just working, i think it could be shorten.. const { mdeState } = this.state;
const newDraftState= DraftUtil.buildNewDraftState(
mdeState.draftEditorState,
{
selection: {
start: 0,
end: 0
},
text: this.state.mdeState.markdown + ' ' + this.state.mdeState.markdown
}
);
this.setState({
mdeState: {
markdown: mdeState.markdown,
html: mdeState.html,
draftEditorState: newDraftState
}
}); |
Thanks @devonnuri for your contribution. I'm working on v6.0 now and I'm changing the value type to |
@andrerpena This is great! Any ETA on when are you planning to release |
@vishrutshah , 30th of September. Check out #136 |
@andrerpena Still planned for the 30th? This is something we desperately need. |
@Sexual For real. I've been using the hack @devonnuri posted but now I have a case where it doesn't work, I'm even getting strange errors. I have an edit button for comments, it brings up a modal with an instance of ReactMde in it and for the life of me I cannot get it to update. @andrerpena any word on an update? |
I'm sorry @Sexual and @lukecamelo. I'm past my own deadline. I'll try to deliver a Unfortunately there will be a bunch of API and visual changes to it. More details here: #136 |
@andrerpena Can you add the build folder to the repo so that we can add the package straight from Github? It'll give me a headstart to getting the integration working |
This problem should be fixed on version 6.0.0-alpha.1. I'm sorry but this contains a number of breaking changes. Please let me know if it does not work for you. |
Hey,
in this sample code you are take the content inside the editor and duplicate the text.
const newMdeState = await DraftUtil.buildNewMdeState( mdeState, this.generateMarkdownPreview, mdeState.markdown + " " + mdeState.markdown );
but in version 5.5.1 it doesn't work. i would go down to 5.1.1. but theres no tag anymore to older versions.
could you please help me, i´ve tried some hourse to get myself...
The text was updated successfully, but these errors were encountered: