edit in place - Apply HalloJS to elements created after initialization -


I recently replaced the Aloha Editor with HalloJS in my CMS for many reasons, the most important of which was HalloJS Lightweight and very easy to customize is a serious problem that I have so far run away that it is not possible to include the HalloJS toolbar in those elements which were dynamically added to the DOM after the initial start of Holo is.

Looking at the source, something is going to be fixed, because a div # hallojstoolbar appears in the DOM, click on the newly created editable, but it is not visible and its widgets, controls and amp; The dialogue has not been found anywhere.

OK, now I'm feeling a little stupid. Before posting this question, after sifting through the pile of 'Foo trapped not a function' in the console, I came to know that this will not work because many options set in the beginning were not read / set (now).

Manually used some wars manually after they were set up, but were unavailable, I came to know that HalloJS was using all the plugin's default options, such as referenceballbar ( Where I am using a stable one) and more importantly, a blank plugin list. After dynamically adding my new element, I find this weird, backoz, I tried to call HalloJS with all the options, there would be no results.

However, if you copy all your favorite options settings (including all plugin references!) In the jQuery.widget ('IKS.hallo') settings in the hallo.js file, then everything is expected Works from

I have chosen to post it here because there is no reference to any problem related to this on the Net anywhere. So I thought it could google anyone on the same issue in the future, when I had to find out this.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -