Hi,
what I want to do is to handle everything inside a specific element as one "thing". A little example (just for demo purposes, as the whole story would be very long):
<div class="whole">
<span>Hello World</span>
</div>
With the code above, I wish to tell CkEditor to select the whole <div> when clicked (similar to images), and disallow the user to make changes to everything inside the div. Is that possible? I'm not asking for a complete solution, just a few hints inside the API.
Thanks,
Felicitus
what I want to do is to handle everything inside a specific element as one "thing". A little example (just for demo purposes, as the whole story would be very long):
<div class="whole">
<span>Hello World</span>
</div>
With the code above, I wish to tell CkEditor to select the whole <div> when clicked (similar to images), and disallow the user to make changes to everything inside the div. Is that possible? I'm not asking for a complete solution, just a few hints inside the API.
Thanks,
Felicitus
Re: Select of multiple elements as once
contenteditable="false"
on your div-element.
I have not found a way to select something by once-clicking (only double clicking) - so I cannot help you here...
Re: Select of multiple elements as once
Basically everything inside the outer <div> should respond as if it was one object. If the user clicks anywhere inside that div, it should be selected (maybe with a border, like an <img>), and the user may move it around, but not change/delete individual parts of the div.
Any more hints?