WordPress.org

Ready to get started?Download WordPress

Forums

Front-end Editor
[resolved] how to initialize alohaBlock with fee (3 posts)

  1. davidosullivan
    Member
    Posted 2 years ago #

    Hey there,

    have just started my experiments with the aloha blocks plugin but have stumbled at the first hurdle!

    there are two lots of Aloha docs, both say slightly different things. I appreciate that this is a feature 'in development' but I am guessing I should be able to get it to do something...

    Thiese are the docs:-
    http://aloha-editor.org/builds/development/latest/doc/guides/output/plugin_block.html
    http://aloha-editor.org/guides/plugin_block.html

    One says you need common/paste + common/block plugins which are already there in the list at 129 in core.php. The other says that you need 'common/contenthandler' aswell so I have added this too. (actually this seems to work quite well at stripping out 'Word Crap' on paste any reason why its not enabled by default?)

    Then you are supposed to be able to initialise blocks with:-
    jQuery('.icc_content_wrap').alohaBlock();

    But that doesn't work I just get 'Uncaught TypeError: Object [object Object] has no method 'alohaBlock'.

    I have tried the demo by uploading the aloha editor fee uses directly and that does work so I am guessing I need to do something different to speak to aloha directly in FEE since this is a WordPress plugin?

    Any ideas?

    http://wordpress.org/extend/plugins/front-end-editor/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    Try using Aloha's jQuery instance:

    Aloha.jQuery('.icc_content_wrap').alohaBlock();
  3. davidosullivan
    Member
    Posted 2 years ago #

    Thats brilliant thanks! ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic