Commit Graph
13 Commits
Author SHA1 Message Date
Maciej Smolinski dd2c69afdb Highlight: As per PR comments - preview becomes static (back-end rendered), edit more dynamic. No hooks. 2016-08-01 19:15:42 +02:00
Maciej Smolinski 9690f717fe Modules: Add code highlighting using hooks.
Achieved using Prism.js (MIT licensed) library and its language addons.
Website: http://prismjs.com/
2016-07-19 19:06:21 +02:00
Maciej Smolinski e25926619e Events: Allow for easier application extension with hook points.
How does it work?

Every time someone wants to extend the application, instead of modifying original `publishing.js` file, he or she can subscribe to given events, e.g.

Scenario: Table Of Contents extension

```
// resources/public/js/toc.js

events.subscribe('content:rendered', function () {
  // Prepend table of contents in edit mode on updates
});

events.subscribe('document:loaded', function () {
  // Prepend table of contents on initial load in edit view and preview
});
```

Now, having structured way to hook into app allows to keep the main codebase maintainable and pretty stable and extremely extensible at the same time.
2016-07-19 19:03:20 +02:00
Christian Müller 29200e6671 terms of service added 2016-07-02 17:24:23 +02:00
Christian Müller 69d8af1171 minor improvement 2016-07-02 17:24:22 +02:00
AminaG 11316c8e0a Add base target tag 2016-05-08 02:53:38 +03:00
Christian Müller 8ccf7d5a71 Note deletion feature added 2016-03-21 11:16:35 +01:00
Christian Müller 2dee4a9d1d tableau feature added to editing page; styling improved 2015-11-03 18:38:51 +01:00
Christian Müller 9acdf8c013 styling fixes for mobile 2015-11-03 15:45:19 +01:00
Christian Müller 15bfde9a8c preview added to the left 2015-11-03 12:45:40 +01:00
Christian Müller 50a12916b8 font simplification 2015-10-23 20:52:10 +02:00
Christian Müller 8786543ec2 update note implemented 2015-10-18 09:42:27 +02:00
Christian Müller b078891190 /edit page implemented 2015-10-17 23:40:13 +02:00