Hi. Here's the thing: i'm developing plugin that would allow user to insert some custom block, that consists of several items, such as couple of images, texts and links. To insert this block user clicks on toolbar icon, dialog div is displayed, user inputs some params, clicks ok and html content is placed in the editor.
The question is: how do i make editor to recognize this block as one item (node), so when i.e.
1. user clicks on this block - the whole block is selected, and
2. when user clicks on plugin icon in toolbar while such a block is selected - its content is parsed and dialog presents information of this block to change (like image dialog); or
3. when carret is placed before/after the block and backspace/del is pressed - block is removed with all its contents.
The only thing i can think of right now is using fakeobjects - judging from printing break plugin behaviour - this is how they work. am i right?
Thanks in advance.
The question is: how do i make editor to recognize this block as one item (node), so when i.e.
1. user clicks on this block - the whole block is selected, and
2. when user clicks on plugin icon in toolbar while such a block is selected - its content is parsed and dialog presents information of this block to change (like image dialog); or
3. when carret is placed before/after the block and backspace/del is pressed - block is removed with all its contents.
The only thing i can think of right now is using fakeobjects - judging from printing break plugin behaviour - this is how they work. am i right?
Thanks in advance.
Re: making editor to recognize block as single item
Re: making editor to recognize block as single item
Re: making editor to recognize block as single item
Re: making editor to recognize block as single item
Re: making editor to recognize block as single item
It's a pity that been the image which represent the 'fakeobject', is incapable of rendering dynamic text with it right now, we need further investigation to bring something that works in this sense.