Hello.
I need to wrap a selection of tagChooser (CODE) in the second tag (PRE).
Use the button code

js: E.tagChooser ([
['code', 'PHP', {'class': 'language-php'}],
['code', 'HTML', {'class': 'language-xhtml'}],
['code', 'Javascript', {'class': 'language-javascript'}],
['code', 'XML', {'class': 'language-xml'}],
['code', 'SQL', {'class': 'language-sql'}],
['code', 'CSS', {'class': 'language-css'}],
]);

For example, I want to get

  • <pri><code class = "language-php"><? php print 'test'; ?></ code></ pri>
  • or <pri><code class = "language-xhtml"><strong>test</ strong></ code></ pri>

Try the button code

js: E.tagChooser ([
['code', 'PHP', {'class': 'language-php'}],
['code', 'HTML', {'class': 'language-xhtml'}],
['code', 'Javascript', {'class': 'language-javascript'}],
['code', 'XML', {'class': 'language-xml'}],
['code', 'SQL', {'class': 'language-sql'}],
['code', 'CSS', {'class': 'language-css'}],
], {WrapAll: 'pri'});

The focus does not go :(
Thanks in advance.