Code Monkey home page Code Monkey logo

ckgedit's Introduction

ckgedit is a WYSIWYG editor for Dokuwiki. It is an implementation of fckgLite which replaces the FCKEditor with the more current CKEditor. Whereas the base directory for fckgLite is named fckg, the base directory for this version is ckgedit. However, only one of the two can be enabled at any one time.

This version of ckgeditor should work with Linux, Windows, and versions of Dokuwiki installed with the Ubuntu/Debian package manager.

This branch uses CKEditor 4.11.4

ckgedit's People

Contributors

araname avatar blacklord049 avatar blu-base avatar brilanto avatar crystal-rainslide avatar dokuwiki-translate avatar dryoo avatar dturkalj avatar fukuyori avatar juergen-aus-zuendorf avatar justemu avatar klap-in avatar kostich avatar mijndert avatar mschlenstedt avatar nfriedli avatar obel1x avatar olafrv avatar orangain avatar proxymus avatar qwe852147 avatar rhavox avatar schplurtz avatar sergey-art82 avatar speedy-gonzalez avatar tangdou1 avatar th-we avatar tj619 avatar turnermm avatar wgesders avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ckgedit's Issues

Selected Texts Links in IE9 and IE10

I have been having an issue where links cannot be created from selected text in Internet Explorer. Links can be created when no text is selected but do not work when it is.

I am running WeatherWax with the most recent stable release of ckgedit. The issue seems very similar to http://dev.ckeditor.com/ticket/8493 but considering ckgedit uses a newer release this issue seems like it would have been resolved.

Thanks!

IE 11 Blank Site with Dokubook

Hi,

i got a blank site by editing my wiki. If i switch back to the official dokuwiki template, i am be able to write with ckgedit.
So, i think its a problem from dokubook. Maybe someone has a fix for my problem?

Thx for your help guys.

Bye

Can't extract rar on windows, symlinks

fckeditor\userfiles\file , flash, media, file can't be extracted without administrator rights

  • after extracting there is also problem with that files
  • while copiing them windows just freeze

It's probably linux stuff but its not possible even store that type of files in windows :(

  • older version worked fine, its just on new version of plugin - /window 8

changing font via editor and reediting the page

Hi, I found an other bug. If you change the font typ or the font size and save the page, the text on the page is like expacted. But if you edit the page again you see somting like

<font 9pt/courier new,courier,monospace;;#000000;;#ffffff>test text</font>

in the editor. I belive its an bug while parsing the text for der editor.

Problem with Geshi section

I try to put a code block, but i add the geshi syntax geshi: php example.php, and after save and enter to edit again the content the geshi tag dissapear and start the process to add the tag again it's a infinite loop.

I use Google Chrome for use de ckgedit

Copy/paste image in editor

Hello,

When copy/paste an image (for example from mspaint or screenshot) into editor, image is shown but after saving instead of the image we see in the page something like "wdwnv31mg6juqaaaabjru5erkjggg".

IMHO two possibilities : when pasting image in editor a pop-up ask where the image have to be saved and with which name or don't allow to paste image in the editor...

NB : mabye can help : http://ckeditor.com/addon/imagepaste

ckgedit_language_chk() is a PHP function but called from config.js?

Hi,
thanks for your plugin. However, trying to install and use the stuff it turn out that

ckeditor/config.js

tries to call top.ckgedit_lanugage_chk()

A function with this name is defined in helper.php, but that one is a PHP function and thus not available from JS. A java-script top.ckgedit_language_chk() does not seem to be available.

Also, in recent DW version pencil.png and del.png are no longer available.

Thanks,

Claus

Media browser : adding a waiting message

In the media browser (from link or image buttons) and when you have lot of files and folder it can take a while to show media list

It could be fine to add a waiting message, it's easy to do :
in fckeditor/editor/filemanager/browser/default/frmresourceslist.html
in function LoadResources after the oListManager.Clear();
document.body.innerHTML = 'Loading, please wait';

in function GetFoldersAndFilesCallBack add in first line this to delete the waiting message:
oListManager.Clear();

Table orientation changed to "rightalign" after edit

When I edit a table, the orientation is changed to "rightalign" when I save it.
In the Sourcecode it looks like this:

TextColumn1
TextColumn2.

I then have to manually change the rightalign to 'col1'

I saw this bug already appearing here. I am using the latest version (downloaded zip here just today), it still is happening to me.

Custom Toolbar

I can't change the Toolbar style since version from 14-Feb_12-14_24

is it configured at another location than config.js?

wie ~~NOCACHE~~ eingeben?

Hallo,

how can I enter ~~NOCACHE~~ with ckgedit?

ckgedit always changes it to ~ ~ NOCACHE~ ~ with blanks.

Did I miss something? Thanks.

Can't Save

As reported in the discussion page

Quoted here:
Whenever I hit the “Save” button nothing visible happens. Checking the console in Chrome I am getting the following error:

Uncaught ReferenceError: parse_wikitext is not defined doku.php?id=private:start&do=edit&rev=0:620
onmousedown

Did I do something wrong, or am I missing something?

Note: I can hit “Save” and no error appears and I am brought back to the main page, however it is only if I change something where the problem occurs.

If you want to test the issue you can check my website:
Testing Page

You can login with the account:

username: testuser
password: RroisBhE03F5

Breaks before SMB shares

Hi,

After saving a page with a samba share within a line the ckgedit always inserts a break just before the samba share

Example:

  • Test Test [[\samba\share|Share]]
    after saving will look like
  • Test Test
    [[\samba\share|Share]]

Can this be manually resolved (editing the configuration files) ?

Thanks in advance
c

Alignment and empty rows don't work

I've add the standard ckedit alignment buttons to the toolbar. In ckeditor it is working fine but after save the alignments disappear.

It's the same thing with empty rows (what I put there with enter or shift+enter

ckgeditor removes norwegian characters on save

Typing in norwegian characters in the editor works fine (lower case æøå and capitals ÆØÅ). However, when I try to save edited text the capitalized letters are removed. The lower case characters are kept just fine.

The html entities we are talking about (both lower case and capitals) are:
aring (229) and Aring (197)
oslash (248) and Oslash (216)
aelig (230) and AElig (198)

I tried adding these entities to ent.ser using the ents_seri.php script, but they don't seem to show up there.

Table Issue with vertikal Span

Hey, today we recognize a issue with the vertikal span in tables.

Often we have tables like this. Mostly create with the DW Edit.
table_issue_ckgedit_1
If i now edit this with the ckg Edit it will look like this. Very nice!
table_issue_ckgedit_2
But if i save it with the ckgEdit, something went wrong:
table_issue_ckgedit_3
If I edit it agian with the ckg Edit it will look like this:
table_issue_ckgedit_4

I reproduce the error and notice that this happend only with a vertikal span. The horizontal span works perfectly.

Do you have a idea, what went wrong?

CKgedit and list items

Hi,
When I added Bulleted list or Numbered list it all looks file.
However, when I tried to reedit the page the list appear as text, as DW list without formmating (* First_Item * Second_Item * Third_Item). It happened both on chrome and firefox.

DokuWiki version: Release 2014-05-05a "Ponder Stibbons", PHP 5.5.11, and the latest CKGedit from github.

Any idea?

Arie.

Unable to open links toolbar

Hello,

We are unable to open links toolbar When used with Dokuwiki 2013-05-10 "Weatherwax".

The background turns grey and nothing happens. We need to refresh the page to get things working.

Other bug: the plugin status a update button on plugins page but the update is unsuccessful.

NB: Thank you for the plugin

Incompatible with plugin "outliner"

Hi,

Ckgedit seems to be incompatible with https://www.dokuwiki.org/plugin:outliner.

Description: When I type a collapsible section macro into the editor: "--> Title [...] <--", then save, everything is fine, a collapsible section appears, the plugin seems to work.
But when reopening the editor, Ckgedit replaces the double dash "--" with a long dash "–". So when I save the page again without editing anything, there is no more collapsible section and instead there is: "–> Title [...] <–"

Info: Using the built-in editor, there is no problem with the plugin, "-->" remains "-->".
What's maybe helpful to know, though: A double dash "--" entered in DW edit is converted to a long dash "–" only in view mode. When editing the article, there is always a double dash.

right arrow will be delete/converted incorrect

If I input an arrow showing right, it will be deleted after second edit.

Steps to reproduce:

  1. open editor (DW or ckgedit)
  2. enter a text with "=>" and save it
  3. it is shown and work correct
  4. open ckgedit
  5. in the Editor Window the converted sign ( ⇒ ) is shown
  6. edit anything other
  7. save page
  8. the arrow isn't in wikitext anymore

The arrow left (<= ) works correct. The both arrow (<=>) is also affected by this bug, it is show as "<⇒" this in ckgedit.

Using headwords in table crashes row

Hi,
When I use the headword function in a table, the cell where I insert it gets cleared and the headwords are written under that cell (out of the table).
Everything despite the headwords is lost then.
See attached images :)
2014-08-18 10_28_53-intern_tabelle_in_tabelle_ersetzen cbasewiki
2014-08-18 10_29_05-intern_tabelle_in_tabelle_ersetzen cbasewiki

Best regards

IE-Issue with Cell Alignment

Hello,

today a user told me that if he edit a table with the ckgedit, the alignment from the edited cell changed after saving to right. This only happend if you are using the IE. I tested it with the IE10 and could reproduce it.

We work it around with the enabled complex table.

Image Gallery

I found a bug to the image gallery.
The path is not correct after upload of image.
The path is "/image", the data is in "./images".
Missing a dot ?

Version : "snapshot? update version 40.1"
Error 404 image not found

Bad icon with FIXME and DELETEME

When adding smiley FIXME or DELETEME it add icon "LOL"

solution :
in dialogs/smileys.js : it missed var descr = dwimages[i][0];

(line 170) dwimages = config.dokuFixmeSmiley;
for(i=0; i< dwimages.length; i++) {
(=>added) var descr = dwimages[i][0];
html.push(

CKG Edit issue with the lisps template "Save" button

When editing a Dokuwiki page using CKG Edit (with the lisps template), upon clicking the lisps "Save" button (located to the right of the page - as part of the lisps template), ALL of the content on the edited page is lost... and replaced with the underlined word (dokuwiki syntax) "false".

However, the lisps "Save" button DOES function properly when edits are made using the standard DW Editor.

This issue was identified while using:
DokuWiki version "2014-09-29a" ("Hrun") (the problem was duplicated using Dokuwiki "Ponder Stibbons")
CKG Edit Version: ckgEdit-ckedit_43-14-Nov_8-08_20

lisps Template Info.:
base lisps
author lisps
date 2013-10-30
name Lisps DokuWiki Template
desc Lisps DokuWiki's modified default template
url http://www.dokuwiki.org/template:lisps

FR: only enable on specific NSs

Hi!

Great thing you are porting the old wysiwyg to ckeditor! Wanted to do the same thing a while ago but never started..

I found that you have a setting which enables to deactivate the editor for specific namespaces and would like to see it exactly the other way round.

I really think that the default editor that dokuwiki ships is the best solution to create sustainable wiki-contents but also understand that not everybody understands the syntax.

Thats why I would only like to enable the ckgedit in particular NS which belong to specific teams.

This is also a good thing if you want to test the editor before rolling it out in the complete wiki

Parse Error after installation

After installation through admin panel all I get is this error message (can't access any page):

Parse error: syntax error, unexpected T_FUNCTION in /dokuwiki/lib/plugins/ckgedit/action/edit.php on line 233

Copy / Paste image bug when resizing

First I want to say I really appreciate your awesome editor, it works flawless for me, despite one error.
When I copy and paste a image and resize it (without saving in between), the image disappears after saving, and only a text like "woxszcxro9mbwaaaabjru5erkjggg" appears in the position where I inserted the image.
The image also doesn't get uploaded, it's not in the media folder like all the other images.

Interestingly I have not problems at all when I insert the image, save, edit the page again and then resize it.

Save with image copy/pasted into edit box deletes the page

I have just upgraded to version 2014-07-24.

When pasting an image into the editor in Firefox and then saving the page, the page is deleted.

When editing pages that already contains images, everything works as it's supposed to.

ckgedit: 2014-07-24
DokuWiki: 2014-05-05a
PHP: 5.3.17
Apache: 2.2.12
OS: SUSE Linux Enterprise 11 SP3

Problem with %C3%89 in link

Hi!

If we create a link that points to a page with an "É" (UTF8 = %C3%89) inside, all the accents in the page get corrupted when we save it.

To reproduce:

  1. create a page with some accents (é, à...)
  2. Create a link to this Wikipedia page: http://fr.wikipedia.org/wiki/S%C3%89CAM
  3. Save the page

Let me know if you need more info, thanks in advance!

Regarding editing of toolbar

Sir,
I want to add the icons and functionality of todo,do, wrap and indexmenu plugin to the ckgedit edit menu so that I can easily access them without any issue.

  1. Todo Plugin https://www.dokuwiki.org/plugin:todo?s[]=todo
  2. Do plugin https://www.dokuwiki.org/plugin:do
  3. Wrap plugin https://www.dokuwiki.org/plugin:wrap
  4. Indexmenu plugin https://www.dokuwiki.org/plugin:indexmenu

along with this I want the ckgedit to download the images that I paste with content so that they can be accessible offline too.

Please help me as soon as possible.

Characters encoding between DW Edit and CKG Edit

Hi,

If the text "\" (in a share link for exemple) is entered with DW Edit ==> No problem, it is correctly displayed in the saved page.
If the same page is opened with CKG editor and saved (with or without modification), the "\" is converted in "%".

Could you please fix this ?

Workaround : convert the "\" in "< nowiki > \ < /nowiki >< nowiki > \ < /nowiki >".

Thanks

Kind regards,
p4r4d0x86

CKG editor - enlargement feature bug

Hello,

In the CKG editor, when we use "enlargement" feature on "random" topics, the editing toolbar is not always visible. All the benefits of this feature are then killed.

At the beginning, I thought it only concerned topics which contain picture(s) but it seems it happens for different "kind" of topics (with or without pictures etc).

Thank you for helping,

Regards,

Bug together with Note Plugin

If the following Dokuwik code is resaved with ckgedit, no info box is shown.

  * **bold text**

<note info>An info box</note>

(The first line is bold text as a list item)

ACL UTF-8 groups in Filemanager

I've ACL Auth plugin "AuthAD" and there's a group "Тестовая группа" in ActiveDirectory.
There's a string "* @Тестовая%5fгруппа 8" in acl.auth.php (0xD0A2 D0B5 D181 D182 D0BE D0B2 D0B0 D18F 25 35 66 D0B3 D180 D183 D0BF D0BF D0B0).
The upload images to DokuWiki via standard Media Manager is successful. But when I upload images through ckgEdit's Filemanager I get an error: "You do not have permission to upload files to this folder. If you think this is incorrect please notify your administrator."

If I set $DWFCK_con_dbg = true; in fckeditor/editor/filemanager/connectors/php/config.php i get nix_paths.txt with the content:

...
[DWFCK_usergrps] => ........_......;;user
...

where "........_......" is 0xF2 E5 F1 F2 EE E2 E0 FF 5F E3 F0 F3 EF EF E0

When I use a group "Test group" Filemanager works successful.

dokuwiki 2014-09-29b "Hrun"
ckgEdit-ckedit_43-15-Jan_13-20_12

Adding font styling for linked text breaks HTML output

If I add a font style (text size) for a paragraph, the HTML code breaks (see screenshot):

code problem ckgedit plugin

I duplicated the paragraph of "Translation in History" and added a font size. It looks fine in editor, but after saving two square brackets are added at the end of the line. Line 1 and the last line are even more garbled.
The resulting HTML code looks like this:

<p><b><a class="wikilink1" href="/doku.php?id=start" title="start"><span style="color:inherit"><span style="font-size:18px"><span style="font-family:inherit"><span style="background-color:inherit">Start</span></span></span></span> </a></b></p>

<ul>
    <li class="level1"><a class="wikilink1" href="/doku.php?id=events" title="events">Events</a></li>
    <li class="level1"><a class="wikilink1" href="/doku.php?id=references" title="references">References</a></li>
</ul>

<h2>Groups &amp; Networks</h2>

<div class="level2">
<p><a class="wikilink2" href="/doku.php?id=translation_in_history-historical_geography" rel="nofollow" title="translation_in_history-historical_geography">Translation in History/Historical Geography</a></p>

<p><span style="color:inherit"><span style="font-size:16px"><span style="font-family:inherit"><span style="background-color:inherit">Translation in History/Historical Geography]]</span></span></span></span></p>

<p><b><a class="wikilink2" href="/doku.php?id=translation_in_history-historical_geography" rel="nofollow" title="translation_in_history-historical_geography"><span style="color:inherit"><span style="font-size:16px"><span style="font-family:inherit"><span style="background-color:inherit">Translation in History/Historical Geography</span></span></span></span> </a></b></p>

This issue seems related to linked text only. Standard text is not affected.

I'm running DokuWiki latest (Arctic theme) with latest ckgedit version from plugin repository on a Linux host.
Tested with Firefox (latest) and Google Chrome (latest) on Win 8.1 x64.

switch from dokuwiki preview to ckgeditor doesn't work

When using dokuwiki editor and doing a preview, if i click on the switch button to use CKGeditor after rediting i'm still with dokuwiki editor

In this case, in edit.php function isOutOfScop return true so ckgeditor is not loaded

Warning: imagecreatefromstring() when saving content with pasted PNGs

Hi there,

I'm trying to save content into a docuwiki page, but coming unstuck when I try more than three images. The first two process correctly, but the third (and subsequent) always fail.

PHP dump...

Warning: imagecreatefromstring(): gd-png: fatal libpng error: invalid stored block lengths in /home/public_html/doku/lib/plugins/ckgedit/action/save.php(77) : runtime-created function on line 3

Warning: imagecreatefromstring(): gd-png error: setjmp returns error condition in /home/public_html/doku/lib/plugins/ckgedit/action/save.php(77) : runtime-created function on line 3

Warning: imagecreatefromstring(): Passed data is not in 'PNG' format in /home/public_html/doku/lib/plugins/ckgedit/action/save.php(77) : runtime-created function on line 3

Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in /home/public_html/doku/lib/plugins/ckgedit/action/save.php(77) : runtime-created function on line 3
Clipboard paste: invalid png image format

Warning: imagecreatefromstring(): gd-png: fatal libpng error: invalid code lengths set in /home/public_html/doku/lib/plugins/ckgedit/action/save.php(77) : runtime-created function on line 3

Warning: imagecreatefromstring(): gd-png error: setjmp returns error condition in /home/public_html/doku/lib/plugins/ckgedit/action/save.php(77) : runtime-created function on line 3

Warning: imagecreatefromstring(): Passed data is not in 'PNG' format in /home/public_html/doku/lib/plugins/ckgedit/action/save.php(77) : runtime-created function on line 3

Warning: imagecreatefromstring(): Couldn't create GD Image Stream out of Data in /home/public_html/doku/lib/plugins/ckgedit/action/save.php(77) : runtime-created function on line 3
Clipboard paste: invalid png image format

Iframe

I cannot get the editor to work when it is embedded within an iframe. I tried changing references to top in the js files is there anything else I need to do.

OS X / Safari 8 Enter/Return key problem

Running Safari on OS X Yosemite triggers issue 12423 in CKEditor, making it essentially unusable. This is fixed in CKEditor 4.4.5. I assume that an update is a non-trivial exercise, but this may become more visible as more people update to 10.10.

Formatting gets really broken when saving a page

I just installed ckgedit on the DokuWiki installation I just upgraded to the current version.
When I edit an existing page (that has existed before I started using ckgedit), the whole page layout gets really broken.

Example:
Sourcecode after clicking edit on 'old' page version:

<h2>DC++</h2>

<div class="level2">
<ul>
    <li class="level1">Host:
    <pre class="code">
adcs://dc.lala.de:3456

</pre>

    <p>&nbsp;</p>
    </li>
</ul>

<ul>
    <li class="level1">Benutzername: [lala]DeinName</li>
    <li class="level1">Encoding: UTF-8</li>
    <li class="level1">Uploadslots: min. 10</li>
    <li class="level1">Share: min. 10 GiB</li>
</ul>
</div>

After clicking on "Save" in the WYSIWYG view without changing anything and then looking at the sourcecode:

<h2>DC++</h2>

<div class="level2">
<ul>
    <li class="level1">Host:</li>
</ul>

<p><code>adcs:<em>dc.lala.de:3456 * Benutzername: [lala]DeinName * Encoding: UTF-8 * Uploadslots: min. 10 * Share: min. 10 GiB </em></code></p>
</div>

What could the problem be?

Always adds a linebreak to the top of the page

I'm using ckgedit in Dokuwiki. Everytime I edit a page a linebreak (e.g. LINEBREAK#1 ) is added to the top of the page. This does not occur if I use the default Dokuwiki editor. It only started happening after I upgraded to whichever version of Dokuwiki is the one before Binky after having used whichever version it is that shipped with Ubuntu 13.04. (I'm sorry I can't remember the names or the dates of the versions precisely.) If I edit a page more than once I accumulate additional linebreaks. This bug makes it impossible to work with certain kinds of pages, such as ones beginning with bulleted lists.

Here are the plugins I have enabled in Dokuwiki:
acl
blog
bookcreator
ckgedit
columns
config
discussion
emphasis
gallery
include
indexmenu
info
linebreak
odt
orphanswanted
pagelist
pagemove
plugin
popularity
revert
safefnrecode
snippets
tag
usermanager
vshare
xbr
yearbox

I recognise that the linebreak plugin may well be where the problem lies. Unfortunately I need that for working with song lyrics.

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.