? ? ? Success

User tests: Successful: Unsuccessful:

avatar okonomiyaki3000
okonomiyaki3000
23 Jan 2015

This was requested over in #5863

There's already a third party plugin that provides Emmet functionality but it does not work in the template editor. This will allow Emmet to be used anywhere CodeMirror is used.

avatar okonomiyaki3000 okonomiyaki3000 - open - 23 Jan 2015
avatar jissues-bot jissues-bot - change - 23 Jan 2015
Labels Added: ?
avatar bluezeyes
bluezeyes - comment - 23 Jan 2015

@okonomiyaki3000 Thanks! I would really appreciate when this get into next version.

As emmet have a build-in list for abbreviations in flavours of html, css, etc it could be extended too (with an own snippets.json) which could be used by joomla to provide snippets for common tasks,
like php snippets for expanding j3:jdimt to <jdoc:include type="modules" name="title" /> as an example

This could extended to an internal set of abbreviations and snippets with the set of current function calls, includes, etc. (pattern) to support developers, template designers, advanced users as help to create or modify their modules, components, templates. (Snippets anyone?)

To give this ability, there should be an ajax function to load the snippet.js into emmet.
A short note how to do this i found here: http://stackoverflow.com/questions/25215959/how-to-customize-emmet-snippets-json-for-codemirror

Interessting the answer from Sergey Chikuyonok, the developer of Emmet.
Maybe he have already those Ajax-funktions which could be used...

That would give the user of joomla a chance to use their own snippets within CM and Emmet.

avatar zero-24 zero-24 - change - 23 Jan 2015
Category External Library Plugins
avatar zero-24 zero-24 - change - 23 Jan 2015
Easy No Yes
avatar Bakual Bakual - change - 23 Jan 2015
Milestone Added:
avatar Bakual Bakual - change - 23 Jan 2015
Labels Added: ?
avatar okonomiyaki3000
okonomiyaki3000 - comment - 23 Feb 2015

This may need a few changes once #6150 is merged.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 16 Jun 2015

I had a better idea about how to do some things over at #5863 and that will affect this PR too. Basically, if that one is merged, Emmet can be done as a separate plugin which means that it can either be merged and distributed with Joomla or, if there's not enough interest in that, it can be packaged separately and installed only by people who are interested in it.

So, please don't merge this yet. Let's get #5863 merged first and then decide what to do about this.

avatar zero-24 zero-24 - change - 16 Jun 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 9 Oct 2015
Milestone Removed:
avatar roland-d
roland-d - comment - 11 Dec 2015

@okonomiyaki3000 Now that #5863 has been merged, what to do with this?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5874.

avatar okonomiyaki3000
okonomiyaki3000 - comment - 15 Dec 2015

#5863 changed quite a bit by the time it was merged from when I first proposed it. This PR is not really still relevant because I gave the CodeMirror plugin a plugin group of its own. So an addon like this should really be a separate plugin now. I'm going to close this and remake it that way in the near future. I probably won't propose it as a PR for Joomla though. It can just be a plugin that people can install only if they want to.

avatar okonomiyaki3000 okonomiyaki3000 - change - 15 Dec 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-12-15 00:34:14
Closed_By okonomiyaki3000

Add a Comment

Login with GitHub to post a comment