Was this page helpful?

Paste clipboard as plain text

    Table of contents
    No headers

    Plain text pasting is available in the built in editor configurations

    You can modify your FCKEditor interface to include a Paste as plain text button on the tool bar. Go to Control Panel/Customize/Editor and add the following code:

    Code:
    FCKConfig.ToolbarSets["Default"] = [
        ['MindTouchDeki_Save','-','Source'],
        ['RemoveFormat','-','TextColor','BGColor'],
        ['MindTouchDeki_InsertExtension','-','MindTouchDeki_Transform'],
        '/',
        ['MindTouchDeki_Cancel'],
        ['PasteText'],
        ['Bold','Italic','Underline','StrikeThrough','-','OrderedList','UnorderedList','JustifyLeft','JustifyCenter','JustifyRight','JustifyFull','-','Outdent','Indent','Blockquote'],
        ['MindTouchDeki_InsertLink','MindTouchDeki_InsertImage','MindTouchDeki_InsertVideo','MindTouchDeki_InsertTemplate','Table'],
        '/',
        ['Style','FontFormat','FontName','FontSize']
    ] ;

    Save the changes and return to Deki. When you enter the editor you will now have a Paste as plain text button right after your Cancel button. This is simply the default editor settings with the PasteText button added. There are a lot of other FCKEditor functions that can be enable in a similar manner.

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by