Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dgredat

    (@dgredat)

    There is no editor_plugin.js.php in Anspress. It looks like it’s using wordpress editor:

    `private function editor_field($field = array())
    {
    if(isset($field[‘label’]))
    $this->label();

    if($field[‘settings’][‘tinymce’] !== false){
    $field[‘settings’][‘tinymce’] = array(
    ‘content_css’ => ap_get_theme_url(‘css/editor.css’),
    ‘wp_autoresize_on’ => true
    );
    }

    /**
    * FILTER: ap_pre_editor_settings
    * Can be used to mody wp_editor settings
    * @var array
    * @since 2.0.1
    */

    $settings = apply_filters(‘ap_pre_editor_settings’, $field[‘settings’] );

    $this->output .= ‘<div class=”ap-form-fields-in”>’;
    // Turn on the output buffer
    ob_start();
    echo ‘<div class=”ap-editor”>’;
    wp_editor( $field[‘value’], $field[‘name’], $settings );
    echo ‘</div>’;
    $this->output .= ob_get_clean();
    $this->error_messages();
    if(!$this->field[‘show_desc_tip’])
    $this->desc();
    $this->output .= ‘</div>’;
    }’

    Thread Starter dgredat

    (@dgredat)

    I use Anspress plugin to include a system of questions and answer, quite like stackoverflow. In question or answer form are frontend editors.
    I tried to add ‘mathTex’ button in the following class function which defines the elements of the editor:

    public function editor_buttons( $buttons, $editor_id )
    {
    if(is_anspress())
    return array( 'bold', 'italic', 'underline', 'strikethrough', 'bullist', 'numlist', 'link', 'unlink', 'blockquote', 'pre', 'mathTex');
    
    return $buttons;
    }

    however it does not worked.

    Thread Starter dgredat

    (@dgredat)

    So kind of you. I am too much limited in developping. I can only do some makeshift job but faced here really difficulties…
    Thanks a ot

    Thread Starter dgredat

    (@dgredat)

    Need help, please.

    https://www.ads-software.com/support/plugin/mathtex-equation-editor
    This pluggin should really do the job however I get some troubles with it.
    I installed this plugin which adds new buttons to WordPress’ WYSIWYG editor, but these buttons are only showing up on the back-end (edit posts/pages) and neither on my front-end instances nor in TinyMCE Advanced.

    I have spent hours trying to figure out what is going wrong but I am so limited about coding… Some professional view would be really kind.

Viewing 5 replies - 1 through 5 (of 5 total)