Osclass Support Forums

Osclass plugin support => Blog and News Plugin => Topic started by: Locan on June 25, 2018, 01:29:55 PM

Title: text editor not show in front end for user
Post by: Locan on June 25, 2018, 01:29:55 PM
i seen on publish file it have js file but why it not show text editor style. it's so hard for upload image in content.


how to fix it

JS file link in publish file
Code: [Select]
<script type="text/javascript" src="<?php echo osc_assets_url('js/tinymce/tinymce.min.js'); ?>"></script>

<script type="text/javascript">
  tinyMCE.init({
    selector: "textarea#s_description",
    mode : "textareas",
    width: "100%",
    height: "440px",
    language: "kh",
    content_css : ["//fonts.googleapis.com/css?family=Open+Sans:300,600&amp;subset=latin,latin-ext"],
    content_style: ".mce-content-body {font-family:'Open Sans',Helvetica,Arial,sans-serif;font-size:13px;}",
    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>
Title: Re: text editor not show in front end for user
Post by: MB Themes on June 25, 2018, 01:39:22 PM
@dom
Check if you do not have javascript errors on page.
Title: Re: text editor not show in front end for user
Post by: Locan on June 25, 2018, 02:04:10 PM
i got this error
Title: Re: text editor not show in front end for user
Post by: MB Themes on June 25, 2018, 02:15:03 PM
@dom
On what theme is error present?
Title: Re: text editor not show in front end for user
Post by: Locan on June 25, 2018, 02:44:11 PM
veronika
Title: Re: text editor not show in front end for user
Post by: MB Themes on June 25, 2018, 03:05:26 PM
@dom
Tested on demo site (veronika) and could not reproduce.
Title: Re: text editor not show in front end for user
Post by: Locan on June 25, 2018, 03:33:06 PM
i don't know why i got this error.  i can't fix it
Title: Re: text editor not show in front end for user
Post by: MB Themes on June 25, 2018, 03:45:47 PM
@dom
Try to use original theme & plugin files only
Title: Re: text editor not show in front end for user
Post by: Locan on June 25, 2018, 04:17:38 PM
latest veronika and blog plugin still not work
Title: Re: text editor not show in front end for user
Post by: MB Themes on June 25, 2018, 05:04:35 PM
@dom
Have you used just blog plugin? you sitll have probably some errors in console.
Title: Re: text editor not show in front end for user
Post by: Locan on July 01, 2018, 05:47:49 AM
it's not work when use Minify  plugin
Title: Re: text editor not show in front end for user
Post by: Locan on July 01, 2018, 06:16:47 AM
i try to add remove hook in publish page but it not work (monify still work)
Code: [Select]
<?php osc_remove_hook('header''minify');?>
i need to use modify plugin from osclass because your monify plugin not work with js compress
regard
Title: Re: text editor not show in front end for user
Post by: MB Themes on July 02, 2018, 12:31:43 PM
@dom
Remove it in plugin.
Title: Re: text editor not show in front end for user
Post by: Locan on July 02, 2018, 01:31:34 PM
just want to remove it when i in publish article page