• Resolved krutis

    (@krutis)


    Hi.
    I have a problem with “wp-admin” type. I use in the “class-wp-job-manager-form-submit-job.php” new field with “wp-editor”. Everything works, just in the administration I can see only “one line of text” and formatting of text is lost. I would like to have a multiline field, with formatting of text.

    https://wordpress.org/plugins/wp-job-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    What code did you use to add the field to the backend?

    Thread Starter krutis

    (@krutis)

    Hi Mike, thank you for responses. I use your great plugin for quite different purposes – as catalogue of coaches (www. dumkoucu . cz). I haven’t found another useful plugin.

    In submit form I have:

    ‘job_reference’ => array(
    ‘label’ => __( ‘XYZ’, ‘wp-job-manager’ ),
    ‘description’ => __( ‘XYZ’, ‘wp-job-manager’ ),
    ‘type’ => ‘wp-editor’,
    ‘required’ => false,
    ‘placeholder’ => __( ”, ‘wp-job-manager’ ),
    ‘priority’ => 19
    )

    And in “writepanels” I have:

    ‘_job_reference’ => array(
    ‘label’ => __( ‘XYZ’, ‘wp-job-manager’ ),
    ‘description’ => __( ‘xyz’, ‘wp-job-manager’ ),
    ),

    In administration I can see text from form, but in “box on only one line”. Firstly I can see text with html tags, but after “updating page” tags dissapears.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    For the writepanel one, add:

    'type' => 'textarea'
    Thread Starter krutis

    (@krutis)

    Hi Mike,
    it solved problem with “only one line box” in administration, but formatting of text is missing in this field.

    Plugin Author Mike Jolley (a11n)

    (@mikejolley)

    It will be the HTML view, rather than a WYSIWYG view. I’ve not implemented visual editors in that location.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP-editor in administration’ is closed to new replies.