Hi,
I want to have a template text in the TinyMCE Editor when I add a new faq. In the Editor Windows should appear a view word like "Problem:, Appears: , Possible solution:".
I have edited the footer.php like this:
// Theme options
theme_advanced_buttons1 : "<?php print $tinyMceSave ?>bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,phpmyfaq,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,code,syntaxhl,|,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,ltr,rtl,|,fullscreen",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
relative_urls : false,
convert_urls : false,
remove_linebreaks : false,
use_native_selects : true,
entity_encoding : "raw",
extended_valid_elements : "code",
// Ajax-based file manager
file_browser_callback : "ajaxfilemanager",
// Save function
save_onsavecallback : "phpMyFAQSave",
// Example content CSS (should be your site CSS)
content_css : "../assets/template/<?php print PMF_Template::getTplSetName(); ?>/css/style.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "js/template_list.js",
// Replace values for the template plugin
template_replace_values : {
username : "<?php print $user->userdata->get('display_name'); ?>",
user_id : "<?php print $user->userdata->get('user_id'); ?>"
}
templates : [
{
title: "Editor Details",
url: "bla.html",
description: "Adds Editor Name and Staff ID"
},
{
title: "Timestamp",
url: "bla.html",
description: "Adds an editing timestamp."
}
]
});
but then the TinyMCE doesn´t appear.
IN bla.html is the text I want to see.
Does anybode knows where my mistake is?
Template for add a new faq
Moderator: Thorsten
Re: Template for add a new faq
Hi,
you should see JavaScript errors in your browser as you add PHP code in.
bye
Thorsten
you should see JavaScript errors in your browser as you add PHP code in.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist