hyunsupul / aesop-core

Open-sourced suite of components that empower interactive storytelling in WordPress.
http://aesopstoryengine.com
GNU General Public License v2.0
245 stars 56 forks source link

show Chapter titles in Visual editor #186

Closed crowjonah closed 9 years ago

crowjonah commented 9 years ago

image

Changed html method's internal parse variable to parsed to avoid collision with the shortcode parse method, which I use to get the title. Calling parse on the shortcode data seems a little redundant, considering html runs a couple expressions on it already, but I'm not aware of the reasoning for some of the conditions in there, so I didn't want to oversimplify anything.

Also added uglify task for tinymce plugins.

There might be some other components that would benefit from showing a little bit more data in the visual editor, but I'll leave that up to you!

Also, apologies if I botched the sourceMap.

bearded-avenger commented 9 years ago

this looks good. really appreciate this!!! and yeah we're a bit hesitant of doing much more in the backend. The focus for 2015 will be moving things to the front end. ;)

etcook commented 9 years ago

@crowjonah We probably don't need both methods of parsing the data in the same function, so I'll likely refactor this. Thanks!