This topic contains a post which is marked as Best Answer. Press here if you would like to see it.
Tinymce Numlist and Bullist Not Showing
« on: November 03, 2024, 12:18:41 AM »
hi..  how can i resolve Bullist and Numlist couldnt found in add/edit description please..




*

MB Themes

Re: Tinymce Numlist and Bullist Not Showing
« Reply #1 on: November 03, 2024, 12:32:28 PM »
Not all options are available in TinyMCE editor.
You must edit core to change tools here (frm/item)
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Purple Brain

  • ****
  • 209 posts
Re: Tinymce Numlist and Bullist Not Showing
« Reply #2 on: March 18, 2025, 11:35:53 AM »
Please tell me in which specific folder (file) you can include the lists. They really aren't in the editor. And I didn't find anything suitable in frm/item.

*

MB Themes

Re: Tinymce Numlist and Bullist Not Showing
« Reply #3 on: March 18, 2025, 04:48:58 PM »
It should be oc-includes/osclass/frm/item....
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Purple Brain

  • ****
  • 209 posts
Re: Tinymce Numlist and Bullist Not Showing
« Reply #4 on: March 19, 2025, 05:32:45 AM »
I still don't understand what this file has to do with it. We are talking about Tinymce and the fact that the editor does not have a button for entering text in a list or a numbered list. Please help me figure it out. This is a very important detail for users.

*

MB Themes

Re: Tinymce Numlist and Bullist Not Showing
« Reply #5 on: March 19, 2025, 11:56:07 AM »
Oh sorry, it's oc-includes/osclass/functions.php

Code: [Select]
osc_tinymce_item_script
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Marked as best answer by frosticek on March 22, 2025, 08:01:02 AM
Re: Tinymce Numlist and Bullist Not Showing
« Reply #6 on: March 19, 2025, 10:02:17 PM »
oc-includes/osclass/functions.php line 1350

Replace this:

function osc_tinymce_item_script() {
  if(osc_tinymce_items_enabled() == '1' && (osc_is_publish_page() || osc_is_edit_page())) { ?>
  <script type="text/javascript">
    tinyMCE.init({
      selector: 'textarea[name^="description["]',
      width: "100%",
      height: "400px",
      language: 'en',
      theme_advanced_toolbar_align : "left",
      theme_advanced_toolbar_location : "top",
      plugins : [
        "advlist autolink lists link image charmap preview anchor",
        "searchreplace visualblocks fullscreen",
        "insertdatetime media table paste autoresize"
      ],
      min_height: 350,
      max_height: 600,
      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,
      setup : function(editor) {
        editor.on("change keyup", function(e){
          //tinyMCE.triggerSave(); // updates all instances
          editor.save();
          $(editor.getElement()).trigger('change');
        });
      }
    });
  </script>
  <?php
  }
}

With this:

function osc_tinymce_item_script() {
  if (osc_tinymce_items_enabled() == '1' && (osc_is_publish_page() || osc_is_edit_page())) { ?>
  <script type="text/javascript">
    tinyMCE.init({
      selector: 'textarea[name^="description["]',
      width: "100%",
      height: "400px",
      language: 'en',
      toolbar: "undo redo | bold italic underline | bullist numlist | alignleft aligncenter alignright alignjustify | link image",
      plugins: [
        "advlist autolink lists link image charmap preview anchor",
        "searchreplace visualblocks fullscreen",
        "insertdatetime media table paste autoresize"
      ],
      min_height: 350,
      max_height: 600,
      entity_encoding: "raw",
      relative_urls: false,
      remove_script_host: false,
      convert_urls: false,
      setup: function(editor) {
        editor.on("change keyup", function(e){
          editor.save();
          $(editor.getElement()).trigger('change');
        });
      }
    });
  </script>
  <?php
  }
}

*

Purple Brain

  • ****
  • 209 posts
Re: Tinymce Numlist and Bullist Not Showing
« Reply #7 on: March 21, 2025, 12:29:19 AM »
Great. Everything is in perfect order now. Thank you so much

*

MB Themes

Re: Tinymce Numlist and Bullist Not Showing
« Reply #8 on: March 22, 2025, 08:01:42 AM »
Thank you.
In osclass 8.3 there will be hooks and filters those helps you to mange this section without core mods.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Purple Brain

  • ****
  • 209 posts
Re: Tinymce Numlist and Bullist Not Showing
« Reply #9 on: March 22, 2025, 02:35:57 PM »
Great, thanks. P.S. The only problem with Osclass is the search. He's nothing at all