Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ResponsiveFilemanager does not work with TinyMCE multi textarea #337

Closed
sarawukl opened this issue Feb 27, 2017 · 12 comments
Closed

ResponsiveFilemanager does not work with TinyMCE multi textarea #337

sarawukl opened this issue Feb 27, 2017 · 12 comments

Comments

@sarawukl
Copy link

I use Responsive File manager for textarea #content and #content2

then the plugin is appear only #content

my code :

tinymce.init({ selector: "#content2,#content", 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 colorpicker textpattern imagetools responsivefilemanager' ], toolbar1: 'insertfile undo redo | styleselect | bold italic underline | forecolor backcolor | alignleft aligncenter alignright alignjustify', toolbar2: 'table cut copy paste searchreplace | preview media image link unlink | bullist numlist outdent indent', image_advtab: true, relative_urls: false, remove_script_host: false, convert_urls: true, language: 'th_TH', content_css : "<?php echo base_url('assets/css/tinymce.css'); ?>", external_filemanager_path: "<?php echo base_url('filemanager'); ?>/", filemanager_title: "Filemanager", external_plugins: {"filemanager": "<?php echo base_url('filemanager/plugin.min.js'); ?>"}, });

@trippo
Copy link
Owner

trippo commented Feb 27, 2017 via email

@sarawukl
Copy link
Author

I mean tinymce

trippo commented an hour ago
Do you mean tinymce or only filemanager?

@trippo
Copy link
Owner

trippo commented Feb 27, 2017 via email

@trippo trippo closed this as completed Feb 27, 2017
@chiendv
Copy link
Contributor

chiendv commented May 10, 2017

Hi Trippo.
I use two TinyMCE instances on a page and filemanager only loaded and works with the last instance.
I use class for selector to init tinMce.

Any help plz?

@trippo
Copy link
Owner

trippo commented May 11, 2017 via email

@chiendv
Copy link
Contributor

chiendv commented May 11, 2017

This is a backend of a website so I cant share it to you but I just use standard setup of TinyMCE and bellow is initial script

tinyMCE.init({
						document_base_url: window.location.protocol + '//' + window.location.host+'/',
						selector: "textarea.mceEditor",
						plugins: [
							"advlist autolink lists link image charmap print preview anchor textcolor",
							"searchreplace visualblocks code fullscreen",
							"insertdatetime media table contextmenu paste"
						],
						fontsize_formats: "8pt 9pt 10pt 11pt 12pt 26pt 36pt",
						external_plugins: { "filemanager" : window.location.origin+"/filemanager/plugin.min.js"},
						toolbar: "insertfile undo redo | styleselect | fontselect | fontsizeselect | bold italic forecolor backcolor | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link responsivefilemanager",
						external_filemanager_path:"/filemanager/",
						filemanager_access_key: RESPONSIVE_FMG_TOKEN ,
						autosave_ask_before_unload: false,	
						relative_urls: true,
						//convert_urls: false,
						remove_script_host: true,
						theme: 'modern',
						min_height: 160,
						height : 500
					});	

@chiendv
Copy link
Contributor

chiendv commented May 14, 2017

more information for you, Trippo
it works in TinyMce version 4.2.8 but not in latest 4.6.1

@trippo
Copy link
Owner

trippo commented Jun 6, 2017

I tried in my demo page and work fine also in 4.6.1

<textarea class="tinymce" id="normal"></textarea> <textarea class="tinymce" id="second"></textarea>

tinymce.init({
selector: "textarea.tinymce",...

@trippo trippo reopened this Jun 6, 2017
@nesumneno
Copy link

Hi,
I have the same issue. Can you tell me please if you managed to fix this problem?

@trippo
Copy link
Owner

trippo commented Jul 27, 2017

#357 (comment)

@trippo trippo closed this as completed Jul 27, 2017
@9hvn
Copy link

9hvn commented Oct 31, 2017

@chiendv , the same issue, could you fixed it

@HTibor87
Copy link

Async problem.
Initialize separately and wait for 1 second between initialization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants