Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum
Welcome, Guest

shortcode button is missing
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: shortcode button is missing

shortcode button is missing 3 years, 12 months ago #42713

Hello,
The Shortcode Button below the TinyMCE Editor is missing.
How can i get it?

Re: shortcode button is missing 3 years, 11 months ago #42736

Dear Sir

It is relate to your editor, Please go to the file: plugins\system\ytshortcodes\ytshortcodes.php and find:
$page = str_replace('<div id="editor-xtd-buttons">', '<div id="editor-xtd-buttons">' . $button, $page);
$page = str_replace('<div id="editor-xtd-buttons" class="btn-toolbar pull-left">', '<div id="editor-xtd-buttons" class="btn-toolbar pull-left">' . $button, $page);

=> Edit to:
$version = new JVersion();
if($version->RELEASE < '3.5' ){
$page = str_replace('<div id="editor-xtd-buttons">', '<div id="editor-xtd-buttons">' . $button, $page);
$page = str_replace('<div id="editor-xtd-buttons" class="btn-toolbar pull-left">', '<div id="editor-xtd-buttons" class="btn-toolbar pull-left">' . $button, $page);
}else
{
$app = JFactory::getApplication();
$editor = $app->getCfg('editor');
if($editor == "tinymce")
{
$page = str_replace('<div class="toggle-editor btn-toolbar pull-right clearfix">','<div id="editor-xtd-buttons" class="btn-toolbar pull-left">'. $button.'</div><div class="toggle-editor btn-toolbar pull-right clearfix">', $page);
}else{
$page = str_replace('<div id="editor-xtd-buttons" class="btn-toolbar pull-left">', '<div id="editor-xtd-buttons" class="btn-toolbar pull-left">' . $button, $page);
}
}

thanks
The following user(s) said Thank You: dutchman
  • Page:
  • 1
Time to create page: 0.25 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Home Pricing
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
SearchSupport
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes