Remove default sample text in YUI Rich Text Editor - yui

Is there a way that the sample text inside the Rich Text Editor be removed?
Basically, I have a Rich Text Editor and has a "Sample Text Here" as a default value, I want the sample text be removed when I click on the editor.

Y.one('#some-button').on('click', function (e) {
Y.one('#some-textarea').setHTML('');
});

Related

Plain text box with placeholder/prompt text in Android

I want to create plain text, that shows text "Enter here" but greyed out and when you click on the text box, the displayed text disappears, like how when you open a new tab on Google and it shows "Search Google or type a URL".
I have already created the plain text and a button that display the text when you enter it in the plain text.
I tried to search it online, but I don't know what the term is for it.
You're looking for an EditText with a hint property
https://developer.android.com/reference/android/widget/EditText

Can you name of this text editor?

Please name this text editor?
i need this text editor name can any one name this text editor?
Editor Picture Link ?
The WYSIWYG in the picture is TinyMCE.

Rich text excerpt

I am using WYSISWG text editor to write post for my website, it generates text with various formatting tags like
<strong></strong>
<em></em>
<ul><li>
</li></ul>
I want to make excerpt from this, but when I just cut text, it will cut it at random place and it can break website layout. Any ways to to excerpts from rich text?

ASPxHtmlEditor disable HTML input

I want my ASPxHtmlEditor to show text as plain text(this is for some requirement where in I will have to disable HTML editor and show text as normal text only for few users). Is it achievable? I have set the HtmlEditorToolbar visibility to false. But still if i copy and paste colored text the editor will show the colored text.
If this not achievable only option will be to show a normal aspx text area for few users and DevExpress ASPxHtmlEditor editor for other users.
I believe it is possible to use both the ASPxHtmlEditor for the rich text and ASPxMemo/textarea for the plain text.
Perform the necessary checks and decide which control should be shown. Hide another control by setting its Visible property to false.
Then, bind the ASPxHtmlEditor.Html or ASPxMemo.Value property with the corresponding field and display it to an end-user.
P.S. Why don't you contact the DevExpress guys regarding your inquiry?

YUI Rich Text Editor Tool to apply Border for Image or div or page?

I have requirement, where a user can choose any border for the content he posted in the editor. Is there any sample available to create borders in YUI Rich Text Editor?
Any help is appreciated.
Thanks,

Resources