impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
501 stars 178 forks source link

Tinymce #721

Open Twiggled opened 9 years ago

Twiggled commented 9 years ago

What version are we using of tinymce. Just so I know I am reading the correct information.

Current Tinymce has several issues. Including Link and Image opening the same page menu rather than the image loading the file or repository manager.

maskas commented 9 years ago

ImpressPages uses nearly the latest TinyMCE. And to my knowledge there is no way to bind different functions on these two events on TinyMCE.

wannaco commented 9 years ago

We have been working on a few tinymce plugins and there is no way to set different browser call backs which makes it impossible at the moment to bind different funtions in terms of link/fiel and/or image managment here is the official TinyMCE documentation http://www.tinymce.com/wiki.php/TinyMCE3x:How-to_implement_a_custom_file_browser

Twiggled commented 9 years ago

Tinymce is on version 4 so that documentation is for 3. And if version 3 is in IP then it is not the latest release and if that is the case how come other systems using tinymce do not have this issue. Wordpress for one.

wannaco commented 9 years ago

Mistake on my part but the documentation is publicly available http://www.tinymce.com/wiki.php/Configuration:file_browser_callback

"This option enables you to add your own file browser/image browser to TinyMCE. If this option is set with a value a browse button will appear in different dialogues such as "insert/edit link" or "insert/edit image". If this option hasn't got a value set (or equals to false or null) the dialogues in question won't show any browse button.

This function is executed each time a user clicks on the "browse" buttons in various dialogues. The format of this callback function is: fileBrowser(field_name, url, type, win) where field_name is the id/name of the form element that the browser should insert its URL into. The url parameter contains the URL value that is currently inside the field. The type parameter contains what type of browser to present; this value can be file, image or flash depending on what dialogue is calling the function. The win parameter contains a reference to the dialog/window that executes the function"

Wordpress may not have this issue because there is no plugin in TinyMCE using a Browser callback for a custom file manager, url manager, image manager.

maskas commented 9 years ago

ImpressPages uses TinyMCE 4.1.6