Git Product home page Git Product logo

ckgdoku's People

Contributors

lzs avatar turnermm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lzs proxymus

ckgdoku's Issues

Compatibility with enforcesummary plugin

Hello,

I want to use the enforcesummary plugin [https://www.dokuwiki.org/plugin:enforcesummary]. If I use the DW-Editor, there are no problems. If I use CKGDOKU it does not work. Is there any possibility to use both plugins together?

Troubles with images and links

Hello,

When I add a link (hyperlink or internal link) to an image in a page then save it, it works perfectly. Now when I edit again the page to add a new image with a link on it then save, the first image disappears !
It seems that if you have more than one link on a image per page it doesn't work and the oldest image with a link disappears.

I use farm_rel-links release because with the master_orig version the images are replaced by "{{ a_link" when I put a link on them. (I work in farm mode)

Thank you in advance.

Upload of non-image files is not possible with mediamanager action

Thanks for your work to include dokuwiki mediamanager into ckgedit.

In dokuwiki you limit the uploads by conf/mime.conf. So uploading of PDF or DOC-files is ok. The dokuwiki mediamanager is called by the icon "add image or other files". In CKedit there seems to be only a button "image". Both call the dokuwiki mediamanager when using ckgdoku. But with ckgdoku installed, there is always an error message
Upload only images when using image dialog: application/pdf
when uploading e.g. PDF files.

The reason for this is based on a condition in your action:
action/mediamanager.php
This hook is also active, if you use the default dokuwiki editor.

This is not perfect. Dokuwiki allows PDF but ckgdoku denies everything except images.

How can users upload other files with ckgdoku?

Maybe I'm blind but there seems to be no possibily.

Wrong file/version for farms

I've tried to update my ckgdoku farm plugin, but the link cked_farm_4.7.zip installs the ckededit version, what I've noticed to late. After this I had both versions installed (ckgedit_farm and ckgdoku_farm). Dokuwiki prompts me to disable one of them.
Is this the expected behaviour?

Thank you in advance.

Blank editor screen in Chrome

I don`t know why, but since today there is a problem with Chrome. When I open the editor the screen remains empty:
2017-05-05 15_43_19- spielplatz schutte-wiki

Content disappears randomly when editing

Hello, first of all thanks for the wonderful plugin !

I used Dokuwiki in farm mode and I am encountering some problems with it.

Sometimes when I edit a page in Dokuwiki and click the "save" button it removes some part of the content or breaks the tables. It seems to happen randomly I can't found any pattern.

I noticed (thanks to the source button) that sometimes HTML tags appear out of nowhere and change the look of the page even if I don't make any changes !

I tried to wrap the whole content in html_blocks (with START_HTML_BLOCK and CLOSE_HTML_BLOCK) to avoid parsing troubles but it causes some side effects :

  • The table of content is not generated
  • The tables don't show background nor lines

So it can't be a solution for me. I also tried to put several html_blocks in a page but if I use it more than one time, some extra HTML tags appeared when saving like that :

image

After saving :

image

It seems that the html_blocks are not the solution to avoid the initial problem.
Is it a known issue ? Is there a way to avoid random changes in the content when we edit a page ?

Copy & paste in a table

Hi,

when I write a text into a cell of a table, its not possible to copy this text some times into this same cell. When pressing Ctrl/V, always the whole content of the cell is replaced

Example:
grafik

The word "Testtext ->" has to be copied several times, so at the end the table should look like this:
grafik

But every time I paste the content of the clipboard the content of the cell is completely replaced by the text of the clipboard:
grafik

Best regards
Juergen

oIWIKIooIWIKIo and cIWIKIccIWIKIc

Sometimes in a complex table the symbols ">" or "<" are interpreted as control character. For example the text should be:
Zyklus „Start“ > 125 bar
but when loading it into ckgedit it is replaced to
Zyklus „Start“ >oIWIKIooIWIKIo 125 barcIWIKIccIWIKIc
Further on the syntax of the subsequent cells is corrupt.

An example where I've tried to eliminate as much as possible is attached:
playground.txt

Best regards
Juergen

[Feature Request] more protocols for links

Hi,
would it be possible to add more protocols for url-links?
Especially ssh: and tel: would spare me and my colleagues a lot of customization in the source code.
Thank you for your work.

Connection cells at the end of a table

Hi,

when I join two cells in a table together which are in the last row, the table becomes corrupted.

Example:
The following syntax

|  Einstellungen            ||  Datum / Name  |
|  Sollwert       | Istwert  | :::            |

is converted by CKGedit to

|  Einstellungen  ||  Datum / Name  |
|  Sollwert  |Istwert  |

The flag "complex tables" is set.

Regards
Juergen

JavaScript Errors

When installing this plugin I get an error in my Chrome Console, somewhere within JQuery's code.

The stack trace isn't very helpful I'm afraid:

jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2 Uncaught TypeError: Cannot read property 'match' of undefined
    at HTMLDocument.<anonymous> (js.php?t=bootstrap3&tseed=aa1666bb3ebab9fc9f7d9cb7ee8a1374:9728)
    at j (jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2)
    at k (jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2)
(anonymous) @ js.php?t=bootstrap3&tseed=aa1666bb3ebab9fc9f7d9cb7ee8a1374:9728
j @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
k @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
setTimeout (async)
r.readyException @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
(anonymous) @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
j @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
k @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
setTimeout (async)
(anonymous) @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
i @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
fireWith @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
fire @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
i @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
fireWith @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
k @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
setTimeout (async)
(anonymous) @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
i @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
fireWith @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
fire @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
i @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
fireWith @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
ready @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:2
R @ jquery.php?tseed=23f888679b4f1dc26eef34902aca964f:3

This is on Greebo with the Bootstrap3 Template. Maybe you can reproduce it?

URL processing bug

A user pasted a l.facebook URL in a page and saved it. When another used edited that page with ckgdoku that URL got misformed, while the user didn't edit that line. I've recreated the bug with a similiarly formed URL.

I created a page with this source:
[[https://​l.facebook.com/​l.php?​u=https://test.com|https://test.com]]

Which looks like this outside of the editor:
image

When I wrote a line below that URL, so I didn't touch the line itself, it seemed fine in ckgdoku. However, after saving the source of the original line became:
[[https://​​l.facebook.com/​​l.php|]]

Which looks like this outside of the editor:
image

Sooooo,
?​u=https://test.com and https://test.com seem to be removed. Or maybe the question mark became a pipe and the rest was omitted?

Software versions
Dokuwiki 2017-02-19e “Frusterick Manners”
I updated ckgdoku on 2017-12-01 and since the latest commit was on 2017-11-28 it's the latest version. Even though dokuwiki claims the latest version is 2017-10-26 (see #38)

Backslashes disappearing when saving

If I edit a page and then save it, it seems that backslashes are disappearing:
For example, this:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -command
turns into
C:WindowsSystem32WindowsPowerShellv1.0powershell.exe -command

Insertion with parameters

Hi,

when inserting an image with parameters the import brings out an error message:

2017-03-28 08_53_24-dateiauswahl schutte-wiki

2017-03-28 08_53_42- spielplatz schutte-wiki

2017-03-28 08_57_41- spielplatz schutte-wiki

Best regards
Juergen

Loss of media in directory after installing ckgdoku (or ckgedit)

I have DokuWiki running on a Windows server. I don't know a whole lot when it comes to the backend side of DokuWiki so please, if I am explaining poorly let me know.

After installing ckgedit all of my media files disappeared. I checked in the dokuwiki/data/media folder and some of the files are there, but not all of them and none actually display on my Wiki.

I tried using the nix option and the winstyle configuration option but to no avail.

Tried uninstalling ckgedit and then installing ckgdoku - same issue.

Tried copying the .htaccess.security from htdocs\lib\plugins\ckgdoku\fckeditor\userfiles over to the dokuwiki/data/media folder and renamed it to .htaccess, cleared cache and still no images. Tried the same thing but with the .htaccess.open but same deal.

Not really sure what to do at this point, help me Obi Wan Kenobi, you're my only hope! (PS thank you for all the amazing work you do as an independent developer).

Copy&paste of media in Chrome

When I copy some content of one wiki page and insert it into another page the included pictures are partially converted to mysterious links:

1.) after pasting into the editor:
grafik

2.) the result in the browser:
grafik

The syntax after saving:

====   ]]  ====

{{:redaktionssystem:techn_doku:00017_p001:9d9114969b9beff859da4e628c70d5b4.png?847x847 ]] [[{{:redaktionssystem:techn_doku:00017_p001:ba40d366c9db502b78614d471dfe94fe.png}}

It seems that this is only a problem of Chrome

Regards
Juergen

Attribute title for links

Is it possible to change the title attribute for the link, similar to the alt attribute for the screenshots?
So that when you hover over the link, the text title = "any text" is displayed.
Now the link looks like this: <a class="class" href="link" title="link"> link text </a>
It would be convenient to be able to get a link like: <a class="class" href="link" title="any text"> link text </a>

Converting of relative internal links to absolute is not good (Proposal)

Ckgdocu is a very great plugin! But it has one important issue: it converts relative doku links to absolute. In certain cases it is unacceptable.
Let me explain.
We are going to switch to DokuWiki for developing, translation and providing documentation for our software users. We need develop documentation for many languages and froze documentation for particular version of our software.
Therefore, the namespace of our DokuWikis looks like this:
en
dev
ugd
gui
faq
tags
v2_1
ugd
gui
faq
v2_2
ugd
gui
faq
ru
dev
ugd
gui
faq
tags
v2_1
ugd
gui
faq
v2_2
ugd
gui
faq
..................
Root namespaces en,ru,fr, etc are the language selectors.
Each language subtree contains development (dev) and fixed (tags) branches.
Dev is where doc-developers and interpriters works on the currently developing software version.
Tags contains documentation for the fixed versions of software (v2_1,v2_2,,,) (Each version have to have corresponding documentation)
ugd,gui,faq are namespaces for documents (User Guide, GUI context help, FAQ)
ugd, gui, faq have internal cross links, for example [[..:gui:add_user]] refs from User Guide page to GUI page.
We use relative links to simplify development and fix versions.
For example, to create new language translation we can simple copy base language development tree [:en:dev] to new language tree [:zh-tw:dev]. Since all links are relative and the overall documentation structure is uniform, we don't need any other actions for correction of internal links.
The same is for the tags tree. We just copy dev tree to tags's v_... tree.

Unfortunately , Ckgdoku breaks this simple scenarios at all!
For example, the link [..:ugd:add_user] is saved as [en:dev:ugd:add_user]. If we copy this page, for example, to taiwan language tree, all links from taiwan dev tree will point to english dev tree!

Is it possible to add these features to your plugin:

  • add plugin configuration parameter flag: 'Save internal links as relative'
  • the same flag in the dialog for internal link create/edit dialog
    ?

With respect,
Sergey Kotov.

Properties of pictures in a table cells

When I put a picture into a table cell it's very difficult to change properties of it. If I open the dialogue the parameters cannot be edited. The reason is, that not the picture but the cell is adressed:
grafik

After pressing "OK":
grafik

Compatibility Imagemapping Plugin

Hello,

I like your ckgdoku plugin. It´s really great!

But I use the Imagemapping Plugin ([https://www.dokuwiki.org/plugin:imagemapping]), too. Unfortunately there are some problems. Would it be possible to identify the Imagemapping code while using ckgdoku?

Mailto by URL as HTML-code

Hi,

is there a possibility to embed such a code to enable a symbol with a mailto function:

[[mailto:[email protected]?subject=Kundenmitteilung%20TM00049&body=Hallo Kollegin/Kollege,%0D%0Dbitte%20die%20Technische%20Kundenmitteilung%20TM00049%20verarbeiten:%0Dhttp://appsrv03/wiki/doku.php?id%3Dtechnik:mitteilungen:tc:2017:techn-mitteilung_00049:techn-kundenmitteilung%0D%0DViele Gr%C3%BC%C3%9Fe%0DHolger%20Pasligh|{{ :symbole:alg:email.png|Mail erzeugen}}]]

I`ve tested it with START_HTML_BLOCK / CLOSE_HTML_BLOCK, but it doesn't work because the html code is interpreted by the editor

Regards
Juergen

Problems while creating internal links

Dear all,

I am using this nice plugin for a longer time. Unfortunately there is some trouble if I want to create an internal links on a sub-ns page: I want to link on a page of the main namespace, but that´s not possible. If I use the link assistent and choose the correct page, dokuwiki places the sub-ns in front of the linked page...

Update URL problem (master.zip)

I find it odd that the update URL of ckgdoku in Dokuwiki is https://github.com/turnermm/ckgdoku/archive/master.zip.

Dokuwiki only mentions a new version when you release one, but when someone clicks the update (or re-install) button they get the latest commit in the repository and not the version you marked for release. This means we're currently running a version that wasn't meant for release yet, making us unintentional beta testers 😀.

It was mentioned in september #28 (comment) that there was an oversight with the update URL, but I don't know if the master.zip URL is the oversight or the fix for the oversight.

I'd like to suggest to have an update URL that downloads the latest release version, in stead of the latest commit version.

Deleting page when changing the editor height

When I set a new value for the editor hight and press enter, there comes up a window to delete the page:
grafik
grafik

If I'm not careful enough and I press enter again the page is really deleted. So it would be better to set the focus to another button or into the editor's area (if possible) after setting a new value.

Regards Juergen

linkwiz grayed out

I have been running ckgdoku on Frusterick Manners, and I just changed templates from the default to codowik. I am not sure if this is a template issue or a plugin issue, but now when I attempt to browse for an internal link within ckg, the link wizard window shows up, but it is greyed as if it were out of focus. I can't select anything in this window, unless I close the "Link" window first using the X. Once I do that, I can navigate the link wizard, but selecting the pages does nothing.

If I switch to DW Edit, the link wizard window pops up and works correctly. Seems to happen in all browsers. I can obviously work around this, but would obviously like this to work as intended. If I hear back from the template maintainer I will update/close this issue. Any feedback or info you need from me I will be happy to provide, but I am not an expert in css or php by any means.

Use Image Dialog for images only, Link Dialog for other media

Hi,

when I try to upload word or pdf files as media files with the native dokuwiki editor I get the message
Use Image Dialog for images only, Link Dialog for other media. This file is: ...

The pages concerned are defined per configuration dwedit_ns to be always edited by the native editor.

Best regards
Juergen

Cannot redeclare class action_plugin_ckgdoku_delete

Fatal error: Cannot redeclare class action_plugin_ckgdoku_delete in D:\xampp\htdocs\dokuwiki\lib\plugins\ckgdoku1\action\delete.php on line 28

on win 10 homw with xampp. Both happening using xtension manager and by manual installation. What to do?

thanks,

Klaus

Wrong formatting in table cells after editing

Hi,

first I have a table like this:
2017-07-04 14_43_15- spielplatz schutte-wiki

Then I edit a cell in the second row and column by inserting a text in a further line (with hard return):
2017-07-04 14_43_37- spielplatz schutte-wiki

In the CKGDoku editor all looks fine, but the result is that after saving this edited cell has a wrong orientation:
2017-07-04 14_43_53-spielplatz schutte-wiki

Best regards
Juergen

Additional File Browsers and JQuery UI use

After some extended use of this plugin, I think it would really benefit from the ability to add additional file browsers to it. Currently, it's just the implementation of ckeditor, which is great, however forces the use of fckeditor's old 1998 style editor (and ckgdoku gives the option for linkwiz...). Would it be feasible to adjust the code to allow for additional file browsers to be added with just a minor config change? Or perhaps even a config option that's auto generated from a directory structure. In addition to this, the standard popup style window is a bit dated, and could also benefit from a change to a jquery ui dialog instead. In the case of a few different file browsers, most notably my favorite, elFinder, this change would allow for many new features, as well as a very welcomed UI update.

Message "Use Image Dialog for images only"

I have some namespaces where I switch to native dokuwiki editor because of a complicated syntax. Now, when I want to upload a PDF-file with this editor I get the message
Use Image Dialog for images only, Link Dialog for other media. This file is:application/pdf.
But this message comes up from the ckgeditor, where I can upload pdf-files by "link dialog". And in the native editor I have no chance to do this.

So, what can I do?

Table with listings

The ckgeditor allows to put a list into a cell of a table:
grafik

But the dokuwiki syntax doesn't support this. So the syntax after saving is corrupted:
grafik

Therefore, because it's not possible in dokuwiki it also shouldn't be allowed in the editor.

Regards Juergen

Interwiki links

In interwiki.local.conf I've defined interwiki links. But they are interpreted wrong when using ckgdoku:

Before:
[[easydm.asd.00>RBU1430510]]

After using ckgdoku:
[[:playground:easydm.asd_00_oiwikiodefault.htm?sap-sysname=PRD&easydms-dokar=ASD&easydms-doknr=RBU1430510&easydms-doktl=001&easydms-dokvr=00cIWIKIc|RBU1430510]]

The key easydm.asd.00 is defined as http://v-sapprd.ahs.local:8000/EDM/default.htm?sap-sysname=PRD&easydms-dokar=ASD&easydms-doknr={NAME}&easydms-doktl=001&easydms-dokvr=00

Best regards
Juergen

CKEditor with UML

We use plantuml to describe workflows etc. If we open such a page by CKEditor the syntax is completely destroyed, although I embrace it with "MULTI_PLUGIN".

Example:

~~MULTI_PLUGIN_OPEN~~
<uml>
start
-[#blue,bold]->
 fork
   -[#blue,bold]->
   -> Kanal 1;
   #lightpink:M1810
   DG5V-X-2-A-T-M-U-H7-10-P08-EN109   
   **MTTF<sub>d</sub> = 150 Jahre**
   -[#blue,bold]->
   floating note left: B760 Diagnose
 endfork
-[#blue,bold]->
stop
</uml>
~~MULTI_PLUGIN_CLOSE~~

After editing with CKEditor the syntax looks like this:

~~MULTI_PLUGIN_OPEN~~

<uml>
start
-[#blue,bold]→
fork
- [#blue,bold]→
- > Kanal 1;
#lightpink:M1810
<code>
DG5V-X-2-A-T-M-U-H7-10-P08-EN109
**MTTF<sub>d</sub> = 150 Jahre**
-[#blue,bold]->
floating note left: B760 Diagnose
</code>
endfork
-[#blue,bold]→
stop
</uml>
~~MULTI_PLUGIN_CLOSE~~

Use rel_links with bug

If I enable the rel_links option, then the inset of the screenshots starts working incorrectly.
If rel_links is disabled, I insert a screenshot:

link type = No link
align = center
alternative text = any text

and everything is saved and displayed correctly, thus it turns out approximately such link
<p><img alt="any text" class="mediacenter img-responsive" src="/lib/exe/fetch.php?media=ru:controlform_needupgrade.png" title="any text" /></p>

But if I enable rel_links then the alignment is skipped, the alternative text is not saved, and the link type becomes = detail
The reference turns out such:
<p><a class="media" href="/lib/exe/detail.php?id=en%3Adev%3Acore%3Aquickstart&amp;media=en:controlform_needupgrade.png" title="en:controlform_needupgrade.png"><img alt="" class="mediaright img-responsive" src="/lib/exe/fetch.php?media=en:controlform_needupgrade.png" /></a></p>

Hitting Return in the Edit Summary tries to delete the page

Problem: In the ckgdoku editor, if you finish an edit by entering text in the Edit Summary field and hit Return, it brings up a deletion confirmation (with "OK" selected). This is a page-eating trap, as unthinking confirmations are a thing.

Expected: It should do a save, not a delete.

(Chrome, IE and Firefox)

use case?

Have you put this into effect with a user group yet? I would like to make it mainstream when possible.

moono-lisa option?

moono-lisa is the default skin of CKEditor 4 since version 4.6. I haven't found an option to enable it in Dokuwiki, even though the moono and moono-lisa files seem to be included with ckgdoku.

I changed moono to moono-lisa in these config files and it works fine (see screenshot):

  • config.js
  • config.js.unc

To keep this I'd have to edit these files with every update of ckgdoku. Would it be possible to add a skin selection option to the Dokuwiki Configuration Settings?

image

Also a quick question:
The changelog of Jun4 states the following:

Switching to tag 'current' as Dokuwiki download version

But with the last update it reverted to 'master', was this by design?

High memory requirements

The folder "fckeditor" contains the subfolder "userfiles" and furthermore this one four subfolders "file", "flash", "image" and "media". Each of these four subfolders contain the whole media of the wiki installation as a copy. So the size of the plugin increases from some MByte to GByte.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.