WYSIWYG Editor - Updated CMS B and now cannot copy/paste and retain the links...

3 posts by 2 authors in: Forums > CMS Builder
Last Post: February 12, 2013   (RSS)

By Dave - February 11, 2013

Hi Jeff, 

There's a "Paste as Plaintext" button on the toolbar (a clipboard with a T on it).  It's selected by default, but if you click on it to deselect it you can paste links in.

And if you'd like it to be off by default you can edit /lib/wysiwyg.php (make a backup first) and remove this block of code (just search for "paste_text_sticky"):

    paste_text_sticky: true, // if user clicks "paste as text" don't unselect it after they paste, wait for them to click it again
    setup: function(ed) {
      ed.onInit.add(function(ed) { // from: http://tinymce.moxiecode.net/punbb/viewtopic.php?pid=73053#p73053
       ed.pasteAsPlainText = true;
       ed.controlManager.setActive("pastetext", true);
      });
    },

Hope that helps!  Let me know if that works for you.

Dave Edis - Senior Developer
interactivetools.com

By HDLLC - February 12, 2013

Oh yeah - that's the answer I'm looking for.  Thanks Dave!

I knew it had to be something simple - and it was.  I'm going to turn that off by default for this install.

Thanks a million!

--Jeff