WordPress.org

Ready to get started?Download WordPress

Forums

Attachments
[resolved] Passing parameters to WYSIWYG editor (7 posts)

  1. jbx
    Member
    Posted 11 months ago #

    Is there a way to pass settings to the WYSIWYG editor that is used in the attachment fields?

    I want to use the WYSIWYG editor because otherwise in the default textarea new lines are being displayed as \n instead. However I don't want to confuse the user and allow him to click on any of the options (tab indents, changes in CSS, colours etc.)

    Is there a way to hide all the buttons for the WYSIWYG editor for attachment fields?

    http://wordpress.org/plugins/attachments/

  2. Jonathan Christopher
    Member
    Plugin Author

    Posted 10 months ago #

    I will definitely check into the \n issue and also make a note too add a hook to allow you to customize the WYSIWYG field, but will need to check into the feasibility of that. Keep an eye out in the next release.

  3. premagraphic
    Member
    Posted 9 months ago #

    Hello,
    the WYSIWYG editor in the field caption would allow the use of this plugin for other purposes, for example the creation of a mini catalog on a page.
    It would be a very important upgrade.
    thanks

  4. EOSlover
    Member
    Posted 9 months ago #

    There is a HUGE problem with new line (\n) when updating post/page that is being automatically added without even clicking in the field.

  5. Jonathan Christopher
    Member
    Plugin Author

    Posted 9 months ago #

    @premagraphic: you can customize the field type for each field, please check out the docs

    @EOSlover: if you're able to provide a more elaborate bug report it makes a fix much easier. I'm not sure what you mean when you say "without even clicking the field". Can you post back with some more details to fully replicate the issue? I have a number of issues I'm working through with the WYSIWYG field and hope to address them soon, in the meantime I am more than willing to review user contributed pull requests.

  6. Jonathan Christopher
    Member
    Plugin Author

    Posted 9 months ago #

    Version 3.5.2 fixes this issue.

  7. premagraphic
    Member
    Posted 9 months ago #

    Thank you, looking in the documentation I found the solution, wonderful!

    maybe I'm going off topic, but I have another question:
    I tried to insert a shortcode of WP-Filebase in wysiwyg, but it did not work.

    I am using "Attachments" to create a mini-catalog of products on the same page,
    you can enter for each node 2 or more attachments: one for the photo and the other for downloadable files?

Reply

You must log in to post.

About this Plugin

About this Topic