using tinymce only for album descriptions, not for image descriptions (slows down browser)

Hi,

is there a way to use TinyMCE only for the album descriptions but not for the image descriptions? Or is there a workaround to deactivate TinyMCE for the image description pages?

Problem is that on the image description pages, TinyMCE slows down the browser to almost zero, i.e. makes it almost unusable. (I'm using zenphoto 1.5 with built-in tinymce 4)

Thanks and kind regards,
Franz

Tags:

Comments

  • acrylian Administrator, Developer

    Yes, but you have to create your own custom config file for it.

    1. Look at /zp-core/zp-extensions/tinymce4/config/
    2. There pick the config file you wish to use (gallery ones are named zenphoto-*).
    3. Follow the general instructions here: https://www.zenphoto.org/news/how-to-create-custom-tinymce-configurations/
    4. Adjust the selector parameter on your config file. This is usually targets generally selector: "textarea.texteditor",. To limit it to album descriptions targetting selector: "#form_albumedit textarea.texteditor", should work.
    5. Then select your custom config file and it should be limited to the album desc.

    Other options to speed up is to choose a slim configuration for the gallery and/or limit the images per page to fewer.

    And before you mention it, probably having selectors for images and albums individually would perhaps also be an idea ;-)

  • Thanks a lot, works perfectly!

    The general instructions are just a bit confusing in one aspect. It says "Rename your copied config file(s) to something unique for each file, e.g. add a prefix like "my_" or anything else you wish to use." -- But the new config doesn't show up in the drop-down menu if you add a prefix to the file name, i.e.: prefix_zenphoto-slim.js.php.

    It does work though, if you replace "slim" by something individual, like: zenphoto-myconfig.js.php.

    At least that's how it works for me ...

  • acrylian Administrator, Developer

    Thanks for the note. Yeah, indeed the prefix is needed so the two option selectors know which to pick to display. Probably has been forgotten to be changed (quite some time ago).

Sign In or Register to comment.