Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table's block level nature is not initialized when inside an aloha-editable that is inside another block level element #813

Open
ntucker opened this issue Nov 16, 2012 · 0 comments
Labels

Comments

@ntucker
Copy link

ntucker commented Nov 16, 2012

I created a custom block level element, and tables can be manipulated within the aloha-editable areas within that block just fine upon creation, but when the page is reloaded, the tables are not properly initialized.

Here's my initialization routine in case I'm doing something wrong:

Aloha.bind( 'aloha-editable-created', function (event, editable) {
    jQuery('.accordion-inner, .accordion-toggle', editable.obj).addClass('aloha-editable');
    jQuery('.accordion-group', editable.obj).alohaBlock();
};

I use alohaBlock() when creating the block element for the first time as well:

var spoiler = jQuery('blah');
spoiler.alohaBlock();

GENTICS.Utils.Dom.insertIntoDOM(
        spoiler,
        Aloha.Selection.getRangeObject(),
        Aloha.activeEditable.obj
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants