Sometimes the content editor needs to copy some text from a webpage but be able to paste it as plain-text (not html with links or bullets or stuff like that) in the Rich Text Editor. How do we achieve that?
Please Help!!
Sorry for the late answer, I just got home from this year Umbraco conference (Codegarden) in Copenhagen. But back to your case. If you have access to the developer section, there is a folder with the data types, just go there and find the data type for the richtext editor. In thereyou can turnoptionson and off,depending on what youwant the user tobe able to do.
I have made an screenshot to make more clear to you want I am talking about.
If you look at the screenshot you will see an option called removeformat, by enable this option the user can remove the formatting. The user just have to mark the section of text in the richtext editor that should be without formatting.
How to copy as PLAIN-TEXT in a Rich-Text-Editor
Hi,
Sometimes the content editor needs to copy some text from a webpage but be able to paste it as plain-text (not html with links or bullets or stuff like that) in the Rich Text Editor. How do we achieve that? Please Help!!
Thanks sg
Hi sg,
Sorry for the late answer, I just got home from this year Umbraco conference (Codegarden) in Copenhagen. But back to your case. If you have access to the developer section, there is a folder with the data types, just go there and find the data type for the richtext editor. In there you can turn options on and off, depending on what you want the user to be able to do.
I have made an screenshot to make more clear to you want I am talking about.
If you look at the screenshot you will see an option called removeformat, by enable this option the user can remove the formatting. The user just have to mark the section of text in the richtext editor that should be without formatting.
Hope this is what you are after.
/Dennis
Hi Dennis,
This information is also helpful. However, for my need i could modify the tinymce.config and add a key so that the default paste is plain text.
Thanks for your time to answer.Hope your conference went well.
Sg
Hi Dennis,
This information is also helpful. However, for my need i could modify the tinymce.config and add a key so that the default paste is plain text.
<command>
<umbracoAlias>mcePasteAsText</umbracoAlias>
<icon>images/editor/paste.gif</icon>
<tinyMceCommand value="" userInterface="true" frontendCommand="pastetext">pastetext</tinyMceCommand>
<priority>79</priority>
</command>
<config key="paste_as_text">true</config>
<config key="paste_text_sticky">true</config>
<config key="paste_text_sticky_default">true</config>
Thanks for your time to answer.Hope your conference went well.
Sg
is working on a reply...