Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP TinyMCE 0.3

  • Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    I know that a lot of people were clamoring for a working version of TinyMCE, so this morning I did some work on BP TinyMCE. I just tagged version 0.3 in the repository.

    The big challenge with bp-default compatibility is the places where updates are sent via ajax. Ideally I would be able to bind an action to the What’s New submit button before BP’s ajax is fired, so that I could write the contents of the TinyMCE box into the proper textarea before the ajax submit, but I couldn’t make it work. I settled on an unappealing but apparently quite functional hack: instead of rewriting the contents on *click*, it happens on *hover*, which will always come before click (especially since the TinyMCE box is not in the tabindex rotation). Let me know if this works for you.

    In addition, I made improvements to make the tooltip language work properly without having to rename or copy any language files. There are also filters in some strategic places in the plugin, in case you want to modify the TinyMCE settings.

Viewing 17 replies - 1 through 17 (of 17 total)
  • Avatar of josemv
    josemv
    Participant

    @el_terko

    Bugreport !
    Even tho entry box is rendered correctly, I cannot post updates to my activiy stream nor to the groups which I am member of. Shows “post anything for your update” msg, like as if I was trying to post update with empty entry box

    On forums bold and italics work ok, both lists functinality do not work

    Sorry, using WP 3.0.2 with BP 1.2.5.2 with bp for malleable theme, theme hybrid framework

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Dammit. That means that my hack is not working. I hate this plugin so much.

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    Boone, I was excited to see some action on this plugin.

    Some issues: IE isn’st allowing you to enter anything. Chrome allows me to enter data, but I cannot post -I get this when I click “post update”:

    http://gyazo.com/ec6aac7660df4be89a0d7ea2bc7431c8.png

    None of the entry boxes are (mouse expandable)… i.e. the ability to make the text entry box larger by the lower righ expand click-drag option….

    Also, when I click on the “link” button I get an error popup that says “oops, this link appears to be broken”.

    Just some info… Thank you for looking into this again.

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    It basically sounds like this update succeeded in precisely 0 of the things it was intended to fix. Thanks for the bug reports.

    In the end, there may be no reliable way to make this work without completely replacing the JS for posting activity updates. If anyone feels like doing that, I would happily give you the keys to this plugin.

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    BTW, @josemv, the lists work fine, they’re just styled away in bp-default. You will have to put some real ul, ol and li styles into your theme.

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    succeeded in precisely 0 of the things it was intended to fix. **giggle**

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    @hnla Your giggles == my tears :'(

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    OK dudes and dudettes.

    Despite my avowed hatred for TinyMCE and for my BP TinyMCE plugin, I have just released 0.3.1. I think it might fix the ajax problem.

    If any core devs are reading this, you should know that I made this work despite the fact that bp-default registers and enqueues its JS outside the scope of any function, when it should be hooked to init. That means I also had to do it wrong in order to get my plugin to catch the click event before BP. We must fix!

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    @pisanojm – If it’s not working in IE, it’s likely a problem with TinyMCE that I dare not touch. Likewise with resizing. Links work fine for me.

    Patches welcome ;)

    Avatar of Hugo
    Hugo
    Moderator

    @hnla

    Your giggles == my tears twas giggles in an empathetic manner, welcome to my world, I succeed at 0 things 90% of the time :)

    Must have a look at this as it’s often mentioned by users, first thing to do to make life easier would probably be to chuck out that over used and abused folly known as Ajax – god how better were things before it was given a name **sigh** http – a stateless protocol as it was meant to be, ever shall it be. there’s nothing wrong with reloading a page :(

    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    @boonebgorges

    Avatar of josemv
    josemv
    Participant

    @el_terko

    Thanks for your prompt fix.
    Sitewide/member profile/group updates now show…unformatted :-(

    Forum posts continue working as before 0.3.1
    Hope someone can fix this, I tried to install @nuprn1 solution but it is too complicated for me

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    @el_terko I spent some time looking for the @nuprn1 solution you mentioned above… and can’t find it… can you point me to it? Thanks.

    Can anyone point in the right direction to add the ul/ol stylings in the CSS for this for befault-bp theme?

    Avatar of josemv
    josemv
    Participant

    @el_terko

    @pisanojm hey doc, of course, here http://etivite.com/groups/buddypress/forum/topic/quick-tip-adding-markitup-to-group-forum-textareas/

    There U can read my inquiries, which, by the way, remain unsolved due to my inexpertice, seems a child-theme matter.

    Avatar of Pisanojm
    Pisanojm
    Participant

    @pisanojm

    @el_terko There seems to be some good forward movment in the area of getting these extended text editing plugins working now… @willcast is working on updating this plugin as well http://buddypress.org/community/groups/bpckeditor/ It may be updated this week… Hopefully, in the next week or so, we will all be able to get one of these to work for us…. Rich’s solution above is another one that I haven’t seen before… I’m going to be offline most of next week, but look forward to getting into this over the holidays.

    Avatar of Mark
    Mark
    Participant

    @markhahnel

    Thanks @booneborges – I upgraded to the newest version, still have no links or lists only bold works. Anyone got a fix yet? Such a great idea.

Viewing 17 replies - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.