<textarea name="content[{@$languageID}]" id="content{@$languageID}">{if !$content[$languageID]|empty}{$content[$languageID]}{/if}</textarea>
{if $pageType == 'text'}
- {capture assign='wysiwygSelector'}content{@$languageID}{/capture}
-
- {include file='wysiwyg' wysiwygSelector=$wysiwygSelector}
+ {include file='wysiwyg' wysiwygSelector='content'|concat:$languageID}
{elseif $pageType == 'html'}
- {capture assign='codemirrorSelector'}#content{@$languageID}{/capture}
-
- {include file='codemirror' codemirrorMode='htmlmixed' codemirrorSelector=$codemirrorSelector}
+ {include file='codemirror' codemirrorMode='htmlmixed' codemirrorSelector='#content'|concat:$languageID}
{elseif $pageType == 'tpl'}
- {capture assign='codemirrorSelector'}#content{@$languageID}{/capture}
-
- {include file='codemirror' codemirrorMode='smartymixed' codemirrorSelector=$codemirrorSelector}
-{/if}
\ No newline at end of file
+ {include file='codemirror' codemirrorMode='smartymixed' codemirrorSelector='#content'|concat:$languageID}
+{/if}