Osclass Support Forums
Osclass plugin support => Blog and News Plugin => Topic started 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
<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&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>
-
@dom
Check if you do not have javascript errors on page.
-
i got this error
-
@dom
On what theme is error present?
-
veronika
-
@dom
Tested on demo site (veronika) and could not reproduce.
-
i don't know why i got this error. i can't fix it
-
@dom
Try to use original theme & plugin files only
-
latest veronika and blog plugin still not work
-
@dom
Have you used just blog plugin? you sitll have probably some errors in console.
-
it's not work when use Minify plugin
-
i try to add remove hook in publish page but it not work (monify still work)
<?php osc_remove_hook('header', 'minify');?>
i need to use modify plugin from osclass because your monify plugin not work with js compress
regard
-
@dom
Remove it in plugin.
-
just want to remove it when i in publish article page