I have some custom tags inside my HTML.
Like
. I want to copy this whole tag and paste the same. When i try
You can create a Widget for each custom tag. Don't forget to specify the allowedContent- and requiredContent-Attributes. And modify the dtd to make the tag editable.
For example:
CKEDITOR.dtd.$editable['mytag'] = 1;
editor.widgets.add('mytagWidget', {
allowedContent: 'mytag(atr)',
requiredContent: 'mytag',
template: 'text ',
editables: {
text: {
selector: '.atr'
}
},
...