Yermo / rich_textarea

Rich_TextArea is a jQuery plugin replacement for the venerable HTML TEXTAREA that adds arbitrary triggered autocompletes along with the insertion of rich “embedded objects” included images, links, or any other markup.
29 stars 2 forks source link

Converting [o={data-value}]? #5

Open chandrewz opened 10 years ago

chandrewz commented 10 years ago

Is there a good way to convert the plain text version back into a tagged version?

Yermo commented 10 years ago

I'm out on travel. Will be back next week. If I forget to answer this then please remind me. (I don't have the code in front of me) On Jun 9, 2014 4:56 PM, "Andrew Chan" notifications@github.com wrote:

Is there a good way to convert the plain text version back into a tagged version?

— Reply to this email directly or view it on GitHub https://github.com/Yermo/rich_textarea/issues/5.

chandrewz commented 10 years ago

For this, I basically regex matched the plain text version and used rich_textarea's insertObject to get them back as tags for text => rich text conversion.

hassantahir01 commented 3 years ago

@chandrewz can you please share the regex or method you created to revert the plain text to rich textarea.I need it on update screen.