Plain text paste into album description

Hi

I'm wondering how I can, if it's possible, edit the album edit page so that only plain unformatted text are pasted into the text area.

I've tried to look into tiny_mce.js and some of the other script files but I basically don't know where to look. I see in album-edit.php from the browser side that paste_use_dialog, paste_auto_cleanup_on_paste and apply_source_formatting are set to true but those have maybe nothing to do with album description(?) Are by the way the album edit dialouge an TinyMCE plugin?

Comments

  • How about turning off the option for TinyMCE editing? Or if you are concerned about HTML tags, set the allowed tags option.
  • In tiny_mce_src.js? I'm not concerned with html tags but some of my users don't know html formatting at all so they paste text from MS Word, internet pages and so on, which fucks up the overall design.
  • In the zenphoto general options. You would have to set this option anyway to prevent pasted tags. Your users could paste them just as easily in a text box as in the TinyMCE editor.
  • I see, but is it possible to set up the album edit page so that when you paste text you get the "paste as plain text" as is done in the Tiny MCE on zenpages; pages edit and news edit pages? I don't remember if I did it or it's like that as default but I guess it was done with `paste_use_dialog : true` in \zp-extensions\zenpage\editor\editor_config.js.php
  • acrylian Administrator, Developer
    Zenphoto's albums and images have their own config file (within zp-core/js). I suggest to look at the TinyMCE website's wiki how to create a custom config file for your purpose.
Sign In or Register to comment.