cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Is it possible to copy/paste fragment (there is no outermost element) without showing "Specify top level element" dialog?

tnguyen-10-11-1
1-Newbie

Is it possible to copy/paste fragment (there is no outermost element) without showing "Specify top level element" dialog?

Hello everyone,

I'm new with ACL, so, I'm not sure if it's possible to copy/paste fragment without let the dialog "specify top level element" appear?

My example is that I have:

<chapter>

<section>

<child>1...</child>

</section>

<section>

<child>2...</child>

</section>

<copied>

....

</copied>

</chapter>

Currently if I copy the first two sections and paste it into <copied></copied>, it will show a "Specify top level element" dialog which asks for the top level element.

What I would like to have is that it allows to copy/paste 2 sections (without outermost element). Is that any way I can do it using ACL?

I use a hook to catch on 'paste' event in ACL: doc_add_callback(current_doc(), 'paste', 'my_paste_handler')

I appreciate for any help!

Thao Nguyen

0 REPLIES 0
Top Tags