Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CodeMirror] Syntax don't work if 2 editor on page #20062

Closed
Septdir opened this issue Apr 2, 2018 · 3 comments
Closed

[CodeMirror] Syntax don't work if 2 editor on page #20062

Septdir opened this issue Apr 2, 2018 · 3 comments

Comments

@Septdir
Copy link
Contributor

Septdir commented Apr 2, 2018

If you display two or more editors on the page, the syntax of the first one will be applied to all

XML for test

<form>
	<field name="html" type="editor" filter="JComponentHelper::filterText"/>
	<field name="css" type="editor" filter="raw" editor="codemirror|none" syntax="css"/>
	<field name="js" type="editor" filter="raw" editor="codemirror|none" syntax="js"/>
</form>

Perhaps there are others there are also problems if you display several CodeMirror.

@Septdir
Copy link
Contributor Author

Septdir commented Apr 2, 2018

@ggppdk ping =)

@ggppdk
Copy link
Contributor

ggppdk commented Apr 2, 2018

@Septdir
Please test PR #20063

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20062

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants