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

JT Thompson's avatar
JT Thompson
745 posts
16 years ago
JT Thompson's avatar JT Thompson

man I was all happy, and then i noticed it’s not working right. lol it breaks the URLS as was mentioned before, but since I don’t know where it was fixed i’m not sure where to look

       
JT Thompson's avatar
JT Thompson
745 posts
16 years ago
JT Thompson's avatar JT Thompson
I need to edit the init for tinymce to change buttons. IN the lg_tinymce i did it through the CP. but there’s no option in your script for that. Since i didn’t need to look lol I didn’t know where the init is called so i can edit it. help?
you can find TinyMCE config files, which you can choose by field setting, in fieldtypes/mx_tinybrowser_field/tinymce_config/. You can edit one of default or create yours. BTW - for understanding specific of creating your own config file, you can read the chapter TinyMCE Config Files

Hmmm.. Yeah I don’t see any option for this

fieldtypes/mx_tinybrowser_field/tinymce_config/

Here’s a screenshot of what I DO see

Unless you mean in the weblog entry types. of which I see three options.

office.js article.js tiny.js

Of whhich all work, but NONE of those files exist in the tiny_mce directory

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

no - is a physical files and you can find this files in fieldtypes/mx_tinybrowser_field/tinymce_config/ physical way starting from you fieldtypes folder.

could you please give me example of broking URL? We have discussion about it up of this topic, so I was create a different setting for TinyMCE. But I need to understand what did you mean by broken urls.

if you don’t need to change url (usual TinyMCE create a relative urls), u need to choose/modify/create configuration with next options:

relative_urls : false,
    remove_script_host : true,
    convert_urls : false,
       
Max Lazar's avatar
Max Lazar
341 posts
16 years ago
Max Lazar's avatar Max Lazar

I just chack now - I don’t add this option in office.js article.js

I will change this in next version. But now you can change it manually. You can choose tiny.js for testing.

       
JT Thompson's avatar
JT Thompson
745 posts
16 years ago
JT Thompson's avatar JT Thompson

here;s the url to the entry. this is a dev site, i’m moving from a standalone site to ee.

http://dev.mmaspot.net/index.php/redblack/comments/sandywh_talks_to_brittish_guy/

the links are pointing to relative URLS. http://dev.mmaspot.net/index.php/redblack/comments/images/uploads/thumper/2009/0826/the_oracle_1.jpg

Of which http://dev.mmaspot.net/images/uploads/thumper/2009/0826/the_oracle_1.jpg is correct.

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

ok. I understand - you need to add next options

relative_urls : false,
    remove_script_host : true,
    convert_urls : false,

in the config file which you choose.

I will add it in default config files of next version.

       
JT Thompson's avatar
JT Thompson
745 posts
16 years ago
JT Thompson's avatar JT Thompson

Yup that fixed it. EXCELLENT.

Man, sorry I’ve been such a pain in the rump

EDIT: Wups, I didn’t see your reply. I just put that in the office.js config since that’s what i’m using.

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

No problem. Is the way to create a better usability 😊 Questions and feature requests welcome.

       
Cem Meric's avatar
Cem Meric
210 posts
16 years ago
Cem Meric's avatar Cem Meric

Hi Max, I’ve just found another bug.

If you activate full screen mode on any TinyMCE field and try to browse for images for example, it comes up with “No Upload Privileges” but I can close the full screen mode and access Tinybrowser it works fine. Do you think it’s related to URL references?

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

No, I think is because TinyBrowser config can’n detect the field name. I will check it.

EDIT. Yes, I was right - during the fullscreen the main field id is mce_fullscreen. I will working on it.

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

ok. I fixed it, so it will be available in next version. Thanks Cem! 😊

       
Dan Lovejoy's avatar
Dan Lovejoy
115 posts
16 years ago
Dan Lovejoy's avatar Dan Lovejoy

I’m getting the “No Upload Priviligies” error as well. I’m trying to use TinyBrowser standalone. The upload folder works fine with nGen File Field, but does not work at all with MX TinyBrowser. :-(

I have tried pointing at TinyMCE on both the administrative subdomain where my CP is, and also at an instance on the public side. I get “No Upload Priviligies” regardless. Where do I start the troubleshooting?

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

I thinks is no upload folder error:

  1. you have this message in modal window or direct in window?

  2. TinyBrowser has protection base on session. So, if, for example, CP on sub.domain.com, but in FF url setting http://domain.com, you will have “No Upload Priviligies”. I’m working on cross domains auth, but it still don’t ready, so I used relatives URLs (in global setting for TinyMCE and in FF setting) for my MSM.

  3. Cem Meric research that MX TinyBrowser has error with It’s All Text! add-on for Firefox, because this addon change field ID and TinyBrowser lost settings.

       
Dan Lovejoy's avatar
Dan Lovejoy
115 posts
16 years ago
Dan Lovejoy's avatar Dan Lovejoy
I thinks is no upload folder error: 1. you have this message in modal window or direct in window?

I don’t know what the modal window is. But this is from within the CP “Publish” page. I get the inline editor to pop up inline in an iframe with an id of “fancy_frame.” My fieldtypes are all on the public server, and the iframe it’s calling is public facing.

2. TinyBrowser has protection base on session. So, if, for example, CP on sub.domain.com, but in FF url setting http://domain.com, you will have “No Upload Priviligies”. I’m working on cross domains auth, but it still don’t ready, so I used relatives URLs (in global setting for TinyMCE and in FF setting) for my MSM.

As I wrote above, my fieldtypes are public facing, but having the CP on a subdomain prevents authentication. Is that correct? Too bad. :-(

3. Cem Meric research that MX TinyBrowser has error with It’s All Text! add-on for Firefox, because this addon change field ID and TinyBrowser lost settings.

It’s definitely not that. I don’t have it installed.

       
Max Lazar's avatar
Max Lazar
341 posts
16 years ago
Max Lazar's avatar Max Lazar
As I wrote above, my fieldtypes are public facing, but having the CP on a subdomain prevents authentication. Is that correct? Too bad. :-(

So, when you work in CP you have url like cp.site.com, but if you look in the html, all you script (for example mx_tinybrowser_field.js, tb_tinymce.js.php) was load from www.site.com?

       
First 4 5 6 7 8 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.