Make Description Editor Plain Text (with no html formatting in paste)

Discussion in 'ClassiCraft WordPress Theme' started by careykidd, Feb 20, 2015.

  1. careykidd

    careykidd New Member

    Joined:
    Feb 18, 2015
    Messages:
    19
    Likes Received:
    0
    Open up tiny_mce_init.js in theme/library/js/tiny_mce_init.js

    replace all code with:

    Code:
    tinymce.init({
        selector: "textarea",
        theme: "modern",
        height: 300,
        oninit:  []
        plugins: [
            "paste"
      ],
      paste_text_sticky: [
            "true"
      ],
      setup: [
            "function(ed) {
        ed.onInit.add(function(ed) {
          ed.pasteAsPlainText = true;
        });
      }"
      ],
      content_css: "css/content.css",
    });
     
  2. spottedvarennes

    spottedvarennes Member

    Joined:
    Jan 26, 2015
    Messages:
    79
    Likes Received:
    0
    Do you have a content.css for Tiny, it seems to be missing in this theme... it give an error in the console, because the file doesnt exist..lol and thanks for the tip
     
  3. careykidd

    careykidd New Member

    Joined:
    Feb 18, 2015
    Messages:
    19
    Likes Received:
    0
    I never needed to edit that, I went into the .js and edited there. Attaching screenshot.
     

    Attached Files:

Share This Page