Not logged in. · Lost password · Register

All posts by davidmarshall15 (6)

topic: ckgedit Plugin - request additional styles  in the forum: General Help and Support Plugins
Avatar
davidmarshall15 #1
Member since Apr 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: ckgedit Plugin - request additional styles
Hello,

Would it be possible to incorporate the Note plugin styles into this plugin?
This is the Note plugin


Thanks
topic: Dokuwiki getting left behind?  in the forum: Community dokuwiki.org
Avatar
davidmarshall15 #2
Member since Apr 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: Dokuwiki getting left behind?
Noticed mediawiki's visualeditor is coming along nicely.

Ironically it is now possible to edit the wikipedia page on dokuwiki using mediawiki's built in wysiwyg editor, showing that the future mediawiki wysiwyg editor is already out there and it's very good!

I have tried various dokuwiki wysiwyg plugins over the years, generally there is one issue or another which ends up with the plugin removed.

Will dokuwiki be doing something like mediawiki's visualeditor in the future?
wiki markup is starting to get old, will dokuwiki get left behind?

I have used dokuwiki for at least 5 years and personally I am ok with wiki markup, but when it comes to users using my sites then I want the easiest and best experience for them, this is why im posting.

Thanks
topic: fckgLite and CKEditor (Move towards replacing FCKEditor with CKEditor)  in the forum: General Help and Support Plugins
Avatar
davidmarshall15 #3
Member since Apr 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 38135
With the image properties dialog on the server concerned, the width remains very wide. The actual minimum it will go is 955.

I have tried lowering minWidth to 200 and tried lowering just about every other width setting that exists, I cannot get the width of the image properties dialog to shrink.

I have tried with the image.js in the latest distro and the image.js in your reply.
The same issue exists with all dokuwiki templates.

As this worked fine while I was testing in a vm earlier today, it is probably some setting or style specific to the site.

This is how it looks.

[Image: https://dl.dropboxusercontent.com/u/9314977/ckeditor/CKEditor_Width.JPG]

EDIT: This seems to be a chrome issue, when I was testing against the vm I was using firefox in the vm.
Just tried IE10 against the server concerned and it looks good in IE10.
This post was edited on 2013-04-12, 22:53 by davidmarshall15.
topic: fckgLite and CKEditor (Move towards replacing FCKEditor with CKEditor)  in the forum: General Help and Support Plugins
Avatar
davidmarshall15 #4
Member since Apr 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 38120
Thank you for the update, very much appreciated.
I don't have access to the backend of the server concerned right now, will do later today and update this thread.

Have setup a linux+apache vm, installed joomla+dokuwiki+custom template+CKEditor, overwrote image.js.

It is looking good, the default width is good when wrapped in Joomla.
On a separate note with the Link properties (URL link, not image link), when Link Type is set to internal link or internal media the width of the textbox below the browse button is very narrow.

Regarding the ACL issue, I have found by storing some details in a cookie and using the following code in the function trustExternal, the fileBrowser works correctly but obviously this makes the site less secure.

This is more or less the function used, cookie name and password hashing have been excluded:

public function trustExternal($user, $pass, $sticky = false) {
 
      global $USERINFO;
      global $conf;
      global $connection;
 
      $sticky ? $sticky = true : $sticky = false; //sanity check
 
      # ***** This is NOT secure *****, currently a workaround to get CKEditor fileBrowser working.
      if (isset($_COOKIE['MyWiki']))  {
            $USERINFO['user'] = $_COOKIE['MyWiki']['user'];
            $USERINFO['mail'] = $_COOKIE['MyWiki']['mail'];
            $USERINFO['grps'] = $_COOKIE['MyWiki']['grps'] == '1' ? array('admin','user') : array( 'user');
 
            $_SERVER['REMOTE_USER'] = $USERINFO['user'];
            $_SESSION[DOKU_COOKIE]['auth']['info'] = $USERINFO;
            return true;
      }
 
 
      define( '_JEXEC', 1 ); 
      define('JPATH_BASE', '/var/www/html/joomla');  # Update this with the current Joomla root
      define( 'DS', DIRECTORY_SEPARATOR ); 
      require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); 
      require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); 
      /* Create Application */ 
      $mainframe =& JFactory::getApplication('site'); 
      $mainframe->initialise(); 
 
      $user =& JFactory::getUser();
      /* Check logged in or not. */ 
      if (!$user->guest) {
            $USERINFO['pass'] = --aSaltyHashOfThisAndThat--;
            $USERINFO['user'] = $user->username;
            $USERINFO['name'] = $user->name == '' ? $user->username : $user->name;
            $USERINFO['mail'] = $user->email;
            $USERINFO['grps'] = $user->username == 'admin' ? array('admin','user') : array( 'user');  # Update superuser name if required

            $_SERVER['REMOTE_USER'] = $user->username;
            $_SESSION[DOKU_COOKIE]['auth']['user'] = $user->username;
            $_SESSION[DOKU_COOKIE]['auth']['pass'] = $USERINFO['pass'];
            $_SESSION[DOKU_COOKIE]['auth']['info'] = $USERINFO;
            setcookie("MyWiki[user]", $USERINFO['user'], time()+3600);
            setcookie("MyWiki[mail]", $USERINFO['mail'], time()+3600);
            setcookie("MyWiki[grps]", $user->username == 'admin' ? '1' : '2', time()+3600);
 
            return true;
    } else {
        return false;
        }
    }
topic: fckgLite and CKEditor (Move towards replacing FCKEditor with CKEditor)  in the forum: General Help and Support Plugins
Avatar
davidmarshall15 #5
Member since Apr 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 38110
Thanks for the reply.

For the FileBrowser, I have narrowed this down to an ACL issue.
When I set upload access for all it works, when access is restricted it does not.
I will need to look into this in more detail, if you have any pointers on authentication through the editor that might help.

EDIT: I have done some more testing with a clean install of dokuwiki (Weather Wax)+ckgEdit-ctable-13-Apr_10-20_44 and a clean install of Joomla 3.0.3.
When using Dokuwiki external authentication (function trustExternal in dokuwiki.root/lib/plugins/auth.php) the fileBrowser has permission issues unless @ALL has Upload privs.
I further tested this by login on Joomla to satisfy authentication, then go directly to the dokuwiki site, edit a page and browse, change ACL and browse again, fileBrowser only works when @ALL can Upload.
So to clarify, this is an ACL issue, not iFrame.

Also for reference using the external authentication method and testing the default editor Image browser and Internal link browser, these work both via Joomla and directly with @ALL set to None.

I would expect any site using function trustExternal will have issues with this plugin, not only Joomla.

---

Also can you point me at the frame size properties for the image link box (the initial frame, not the browser). It is a little to wide for the default joomla layout.

EDIT: Actually it's a custom dokuwiki theme that seems to be causing the width issue, the image properties dialog is to wide.
This post was edited 2 times, last on 2013-04-11, 17:57 by davidmarshall15.
topic: fckgLite and CKEditor (Move towards replacing FCKEditor with CKEditor)  in the forum: General Help and Support Plugins
Avatar
davidmarshall15 #6
Member since Apr 2013 · 6 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 37903
First of all I have to say CKEditor for Dokuwiki is fantastic and when running in a native Dokuwiki site it does work very well.

Running Dokuwiki within Joomla 3.0.x I found fckgLite didn't work at all, switching to CKEditor did work but with some issues.
Joomla is basically showing dikuwiki in an iFrame with authentication handled by DokuWiki's external method.

No issues with the default editor but with CKEditor browsing for Images or Internal Links just doesn't work.
I have seen this behavior before in a glFusion site but didn't realise it was the iframe causing issue, so I expect it should be fairly easy to replicate.

Is this a known issue?
Any known workarounds or fixes?

Thank you for a great plugin, despite some serious issues when integrating with another product it really does make life much easier, especially for non technical people who can just about cope with WYSIWYG.
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-05-25, 05:48:47 (UTC +02:00)