*

kriskoyk

  • *****
  • 324 posts
TinyMCE problem in OSCLASS 4.2
« on: December 04, 2020, 12:23:48 AM »
The administrator allows users to enter their description using the TinyMCE rich word processor, but this does not work.

See photos and address

The mail server also stopped working

http://ixcar.net/index.php?page=user&action=profile

Marked as best answer by frosticek on December 04, 2020, 09:25:50 PM
*

MB Themes

Re: TinyMCE problem in OSCLASS 4.2
« Reply #1 on: December 04, 2020, 10:32:30 AM »
@kriskoyk
I see, it was left in theme instead moving into core. Will be updated in 4.2.1. Meanwhile you can open you oc-includes/osclass/functions.php and add (anywhere, start or at the end) following block.
Code: [Select]

function osc_tinymce_user_head() {
  if(osc_tinymce_users_enabled() == '1' && osc_is_user_profile()) {
    osc_enqueue_script('tiny_mce', array('jquery'));
  }
}

osc_add_hook('init' , 'osc_tinymce_user_head');


function osc_tinymce_user_script() {
  if(osc_tinymce_users_enabled() == '1' && osc_is_user_profile()) { ?>
  <script type="text/javascript">
    tinyMCE.init({
      selector: "textarea[name^='s_info[']",
      mode : "textareas",
      width: "100%",
      height: "560px",
      language: 'en',
      content_style: "body {font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen-Sans,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;}",
      theme_advanced_toolbar_align : "left",
      theme_advanced_toolbar_location : "top",
      plugins : [
        "advlist autolink lists link image charmap preview anchor",
        "searchreplace visualblocks code fullscreen",
        "insertdatetime media table contextmenu paste"
      ],
      entity_encoding : "raw",
      theme_advanced_buttons1_add : "forecolorpicker,fontsizeselect",
      theme_advanced_buttons2_add: "media",
      theme_advanced_buttons3: "",
      theme_advanced_disable : "styleselect,anchor",
      relative_urls : false,
      remove_script_host : false,
      convert_urls : false
    });
  </script>
  <?php
  
}
}

osc_add_hook('footer''osc_tinymce_user_script'10);
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

kriskoyk

  • *****
  • 324 posts
Re: TinyMCE problem in OSCLASS 4.2
« Reply #2 on: December 04, 2020, 09:17:10 PM »
Yes, tinymce is okay now.

You should also see the problem with the mail server, it does not work.