We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New Extension: MX Tinybrowser (universal field for creating TinyMCE or/and MarkItUp textareas with TinyBrowser&LinkManager;support)

Development and Programming

Max Lazar's avatar
Max Lazar
341 posts
16 years ago
Max Lazar's avatar Max Lazar

In first - thanks for opinion! 😊

about the problem with double qoutes - I think it is the same problem as this one. So I decide to wait for the Brandon comments.

And about last question – for StandAlone mode you just need to setup upload folder setting for allow all files. For TinyMCE you can add media files type by adding media plugin and media button.

       
silenz's avatar
silenz
1,651 posts
16 years ago
silenz's avatar silenz

Thank you for the quick heads up.

TinyMCE you can add media files type by adding media plugin and media button.

That works great. What i really need is other files (.pdf, .ppt, .rtf etc.).

       
silenz's avatar
silenz
1,651 posts
16 years ago
silenz's avatar silenz

Found it!

It is done via TinyMCE’s Link-dialog.

       
Max Lazar's avatar
Max Lazar
341 posts
16 years ago
Max Lazar's avatar Max Lazar

you need to used TinyMCE link button for this. example of TinyMCE configuration:

tinyMCE.init({
    theme : "advanced",
    mode : "specific_textareas",
       editor_selector : "mx_tiny",
       elements : "tinyBrowser",
    file_browser_callback : "tinyBrowser",
    disk_cache : true,
    plugins : "inlinepopups,media",
    theme_advanced_buttons1 : "bold,italic,underline,separator,strikethrough,justifyleft,justifycenter,justifyright,justifyfull,bullist,numlist,undo,redo,|,link,unlink,image,media",
    theme_advanced_buttons2 : "",
    theme_advanced_buttons3 : "",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_statusbar_location : "bottom",
       theme_advanced_resizing : true,
       width : "99%"
    });

Link - All files (.) Media - Media files image - Image files

add…

Found it! It is done via TinyMCE’s Link-dialog.

Great 😊

       
silenz's avatar
silenz
1,651 posts
16 years ago
silenz's avatar silenz

I feel I must be annoying. You may ignore me 😉

If I have several fields on the publish form that share the same config-file with

mode : "specific_textareas",
editor_selector : "mx_tiny",

all fields are converted to TinyMCE fields but their content does not show up although it’s there. Any way around this?

       
Max Lazar's avatar
Max Lazar
341 posts
16 years ago
Max Lazar's avatar Max Lazar

I fixed this issue in new version. Is not ready for publish, but you can download it

       
silenz's avatar
silenz
1,651 posts
16 years ago
silenz's avatar silenz

Tried it and it works. Apart from the fact that it seems to add the URL of the upload directory to the content of those fields.

EDIT:

Could have been caused by me switching between Standalone- and Editor-Mode. Shame on me.

       
julzmon's avatar
julzmon
44 posts
16 years ago
julzmon's avatar julzmon

What would be the proper setup with this plugin and LG TinyMCE? So far I just left the Global script empty and seems to work.

       
silenz's avatar
silenz
1,651 posts
16 years ago
silenz's avatar silenz

I just replaced LG TinyMCE with it. Why use both?

       
julzmon's avatar
julzmon
44 posts
16 years ago
julzmon's avatar julzmon

Ah OK thanks for the tip. I have it all figured out now. Love this fieldtype!

       
julzmon's avatar
julzmon
44 posts
16 years ago
julzmon's avatar julzmon

I was trying to switch my Custom Field images fieldtype matrix from “nGen File Field” uploader to MX Tynybrowser.

I’m getting the file name but not the url path

<a class="group" href="claroquesi_decda.jpg" title="" rel="group">

Anyway to process this somehow?

       
Max Lazar's avatar
Max Lazar
341 posts
16 years ago
Max Lazar's avatar Max Lazar

TinyBrowser has his own thumbs which will be creating after the first TinyBrowser start in Image mode. p.s. In case if is not help - just tell me and I recheck it.

       
julzmon's avatar
julzmon
44 posts
16 years ago
julzmon's avatar julzmon

Thanks for your reply. I updated my post as you posted this. I guess nGen doesn’t add the URL path in the same way. Could I run a mysql process of some sort to fix this?

       
Max Lazar's avatar
Max Lazar
341 posts
16 years ago
Max Lazar's avatar Max Lazar
  1. You can used {tinybrowser_field_name:file_name} and create templates’ like for nGen.

  2. If you decide to use full path, you can run the mysql queries below (don’t forget to make DB backup before this)

update exp_weblog_data set field_id_XX = concat(’URL',field_id_XX);
       
julzmon's avatar
julzmon
44 posts
16 years ago
julzmon's avatar julzmon

I’ve noticed another problem. When using pagination and when on anything by the first page the image paths are relative so the images break. I’m sure there must be a absolute path setting somewhere. I’ve tried document_base_url in the tinymce setup but that breaks the tinymce on the publish page.

       
1 2 3 4 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.