Opened 12 years ago
Closed 12 years ago
#11781 closed Bug (fixed)
The codesnippetgeshi documentation is broken - colorize.php does not exist
| Reported by: | Piotrek Koszuliński | Owned by: | Marek Lewandowski |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 4.4.0 |
| Component: | Documentation & Samples | Version: | 4.4.0 |
| Keywords: | Cc: |
Description
My idea is to include its source in the documentation for the plugin. The example is just few lines of code and IMO, the file should be kept outside CKEditor directory, to not cause problems during updating CKEditor.
<?php include_once 'geshi/geshi.php'; $json_string = file_get_contents( 'php://input' ); $json_object = json_decode( $json_string ); $geshi = new GeSHi( $json_object->html, $json_object->lang ); echo $geshi->parse_code();
Change History (12)
comment:1 Changed 12 years ago by
| Status: | new → confirmed |
|---|
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
| Owner: | set to Marek Lewandowski |
|---|---|
| Status: | confirmed → assigned |
comment:4 Changed 12 years ago by
| Status: | assigned → review |
|---|
Docs pushed to t/11480@docs. They don't incldue JSON entry, because it will cause conflicts with ckeditor-sdk branch. It might be good idea for Anna to have a look on these docs.
Pushed small change to t/11781 at dev.
comment:5 Changed 12 years ago by
| Status: | review → review_failed |
|---|
README.md in codesnippetgeshi plugin directory should contain only a link to docs and nothing more. DRY.
comment:6 Changed 12 years ago by
And second thing - created guides were not added to guides.json so they are not available in the menu.
comment:7 Changed 12 years ago by
Ok, I got an info from Ania that she'll update guides.json so ignore comment:6.
comment:8 Changed 12 years ago by
While using editor in [inline](#!/guide/dev_inline) or divarea mode - styles are not preserved.
Not preserved? This doesn't make sense. There's nothing to be preserved. They are not automatically loaded by CKEditor.
comment:9 Changed 12 years ago by
Added requested update and few typos to t/11480@docs.
Pushed to t/11781 at dev.
comment:10 Changed 12 years ago by
| Status: | review_failed → review |
|---|
comment:12 Changed 12 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | review → closed |
Fixed with git:ab2f93f049 (merged to major) at dev. Added without changelog entry, since these are only docs changes.

I'm fine with keeping the file inside the documentation.
If we ever gonna include colorize.php in the plugin folder by default and point
codeSnippetGeshi_urlinto it, we should do two things:The 2nd point could look like this:
<?php if (function_exists('stream_resolve_include_path') && stream_resolve_include_path('geshi/geshi.php') === FALSE) { die('<pre class="html">Please install the geshi library. Refer to plugins/codesnippetgeshi/README.md for more information.</pre>'); } include_once 'geshi/geshi.php'; $json_string = file_get_contents( 'php://input' ); $json_object = json_decode( $json_string ); $geshi = new GeSHi( $json_object->html, $json_object->lang ); echo $geshi->parse_code();die()it is not required if this code will land only in the documentation.