*

bcfishing

  • *
  • 4 posts
Osclass 8.2 TinyMCE Editor for Mobile Description - Textarea
« on: November 24, 2023, 10:23:27 PM »
TinyMCE Editor to work for Mobile.


Simple fix to get the tinymce editor to work for  Description ( Textarea ) for mobile view.


/oc-includes/osclass/functions.php

line 1352

Code: [Select]

<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"
      ],



change to

 
Code: [Select]


<script type="text/javascript">
    tinyMCE.init({
      selector: 'textarea[name^="description["]',
      theme: 'silver',
      mobile: {
    theme: 'mobile',
    plugins: 'autosave lists autolink',
    toolbar: 'undo bold italic styleselect'
  },
      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"
      ],





Tested and Works ! with Osclass 8.2


*

MB Themes

Re: Osclass 8.2 TinyMCE Editor for Mobile Description - Textarea
« Reply #1 on: November 25, 2023, 01:42:16 PM »
Cannot reproduce any issue on TinyMCE.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

*

Cecile D

  • **
  • 27 posts
Re: Osclass 8.2 TinyMCE Editor for Mobile Description - Textarea
« Reply #2 on: August 18, 2024, 12:38:37 AM »
How can we make this work for all text area. if I create an attribute type textarea tiny not working.

Thanks