i am using the tinymce plugin for having formatted text in the textarea. I am also using the image Insert/Edit Images button(for inline images), but the browse file button does not seem to appear in the dialog boxes that opens after clicking it, so, i am not able to select a file now.
Below is the init of the plugin and some images of what i was hoping to see
tinymce.init({
selector: "textarea",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor moxiemanager"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link code image | forecolor backcolor emoticons",
image_advtab: true,
statusbar : false,
menubar : false,
force_p_newlines : false,
force_br_newlines : true,
convert_newlines_to_brs : true,
forced_root_block : false,
paste_text_linebreaktype : "br",
width : 730,
height : 300,
templates: [
{title: 'Test template 1', content: 'Test 1'},
{title: 'Test template 2', content: 'Test 2'}
]
});
i am using the tinymce plugin for having formatted text in the textarea. I am also using the image Insert/Edit Images button(for inline images), but the browse file button does not seem to appear in the dialog boxes that opens after clicking it, so, i am not able to select a file now.
Below is the init of the plugin and some images of what i was hoping to see
tinymce.init({
selector: "textarea",
theme: "modern",
plugins: [
"advlist autolink lists link image charmap print preview hr anchor pagebreak",
"searchreplace wordcount visualblocks visualchars code fullscreen",
"insertdatetime media nonbreaking save table contextmenu directionality",
"emoticons template paste textcolor moxiemanager"
],
toolbar1: "insertfile undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link code image | forecolor backcolor emoticons",
image_advtab: true,
statusbar : false,
menubar : false,
force_p_newlines : false,
force_br_newlines : true,
convert_newlines_to_brs : true,
forced_root_block : false,
paste_text_linebreaktype : "br",
width : 730,
height : 300,
templates: [
{title: 'Test template 1', content: 'Test 1'},
{title: 'Test template 2', content: 'Test 2'}
]
});
Share Improve this question asked Jul 24, 2013 at 9:53 ArcherArcher 1,1624 gold badges13 silver badges34 bronze badges 7
- Have you filebrowser? – Bora Commented Jul 24, 2013 at 9:57
- what is the filebrowser – Archer Commented Jul 24, 2013 at 9:57
- About file browser Doc1 Doc2 – Bora Commented Jul 24, 2013 at 10:00
- 2 You have a steady hand I see :) – Damien Pirsy Commented Jul 24, 2013 at 10:06
- okay, no i am not using any such thing yet, do i need to use it? a widow as i have pasted, already seems to appear, but no browse file button in it. – Archer Commented Jul 24, 2013 at 10:08
2 Answers
Reset to default 11Well, after trying a few free file managers for tinymce, i came across this .
It is very easy to implement and the readme file give all the config necessary. This works perfectly good.
use the code snippet below to fix the problem
file_browser_callback: function (fieldName, url, type, win) {
// your code
},