RichText in input field

RichText in input field

  

How do i add richtext in the input box? something like below


Solution

Hi Ananth,

You can use this forge component CKEditor .



Regards

-PJ-

Solution

Pramod Jain wrote:

Hi Ananth,

You can use this forge component CKEditor .



Regards

-PJ-

Hi Pramod,

Thanks a lot. I was just trying to configure CKEditor and got the config values as follows


SyntaxEditor Code Snippet

CKEDITOR.editorConfig = function( config ) {
    config.toolbarGroups = [
        '/',
        '/',
        '/',
        { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
        { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
        { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
        { name: 'forms', groups: [ 'forms' ] },
        '/',
        { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
        { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
        { name: 'links', groups: [ 'links' ] },
        { name: 'insert', groups: [ 'insert' ] },
        '/',
        { name: 'styles', groups: [ 'styles' ] },
        { name: 'colors', groups: [ 'colors' ] },
        { name: 'tools', groups: [ 'tools' ] },
        { name: 'others', groups: [ 'others' ] },
        { name: 'about', groups: [ 'about' ] }
    ];

    config.removeButtons = 'Source,Save,About,ShowBlocks,Iframe,PageBreak,Smiley,Flash,Anchor,Unlink,Language,BidiRtl,BidiLtr,CreateDiv,Blockquote,RemoveFormat,CopyFormatting,Subscript,Superscript,HiddenField,ImageButton,Button,Select,Textarea,TextField,Radio,Checkbox,Form,SelectAll,Replace,Find,PasteFromWord,PasteText,Paste,Copy,Cut,Templates,Print,Preview,NewPage';
};

Where to give this value? I don't know.. Please help!