Posted on: 04/13/15 04:39pm
By: bedouin
I'm having an issue where only users in the story editors group can use the advanced editor when submitting a story for submission, despite having use CKEditor being checked in the my account settings. How might I fix this?
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/13/15 05:22pm
By: Laugh
Do you have the site default set to an editor? (found in the Geeklog Configuration)
Also you should have your users check "My Account" as they can set their own default as well.
Tom
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/13/15 05:32pm
By: bedouin
Advanced editor is set to true and the advanced editor name is set to CKEDitor. However, when I try to select a default editor only plain text, wiki, and html show up.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/13/15 08:22pm
By: Laugh
Select HTML Formatted. The editors produce HTML and if enabled will be displayed when that post mode is selected.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/13/15 08:31pm
By: bedouin
The problem is that most of the posts will be in Arabic, and the CKEditor is the only one that lets users format their text right-to-left.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/13/15 10:26pm
By: Laugh
Did my suggestion fix the problem?
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/14/15 05:41am
By: bedouin
Yes, but the problem persists. Even though users have CKEditor selected in their account preferences they cannot use it. Now they are just given the HTML editor instead.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/14/15 06:10am
By: Laugh
What version of Geeklog are you using and what theme?
The Advanced editor cannot be disabled/enabled by access level so something else must be going on.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/14/15 06:50am
By: bedouin
I'm using 2.1.1 with the denim theme.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/14/15 09:11am
By: Laugh
Do you mean you are using 2.1.0? (or are you using the unreleased 2.1.1 from the repository)
I just double checked again and it works fine on the demo site (and on my development server).
I can't really offer any more solutions unless I can get access to your site. Email me the details if you want.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/14/15 10:32am
By: bedouin
Yeah, I am actually running the development version. I had an issue with Geeklog not liking my TLD and thought the development version might have fixed that problem, although it didn't seem to. At any rate I stuck with it.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/14/15 01:55pm
By: Laugh
No that bug has not been fixed. Please add it to the Bug tracker so we don't forget about it.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/16/15 01:50pm
By: bedouin
I sent you an E-Mail.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/16/15 09:21pm
By: Laugh
The development version is pretty solid at the moment. (I am using it on one of my sites along with the unreleased version of the forum)
Just remember since 2.1.1 has not been released yet config options or table changes could still happen. If so you will have to manually update the changes.
BTW I didn't get an email so I sent you one. Please reply to it.
Thanks
Tom
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/17/15 07:48am
By: bedouin
In light of that, I decided to downgrade to 2.1.0. The problem persists though. Will send you an E-Mail shortly.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/17/15 09:09am
By: bedouin
I noticed even on the geeklog.net site, despite having CKEditor being checked in my account preferences, if I try to contribute I'm only allowed to select between HTML formatted and plain text.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/17/15 10:02am
By: ::Ben
Hi,
On the geeklog.net site, having CKEditor being checked in my account preferences, if I try to contribute I'm seeing the advanced editor (ckeditor).
Bedouin, could it be a browser issue for you?
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/17/15 10:18am
By: bedouin
I am getting the same behavior with Firefox and Safari on Mac an also my iPhone on both sites. Do you perhaps have administrative privileges of some sort? The problem I'm having on my site is that ordinary users without any administrative privileges cannot use the advanced editor.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/17/15 11:46am
By: Laugh
The CKEditor currently doesn't support mobile devices:
http://ckeditor.com/support/faq/features#question10
This should change by CKEditor 5
I know it doesn't come up on my Android devices. I am not sure about the iPhone.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/17/15 06:42pm
By: bedouin
It might seem like a stupid question, but have you guys attempted creating absolutely new users and checking this out? Users with only the default privileges?
These are my results[*1] in Firefox in OS X, Iceweasal (Firefox) under Debian Wheezy, Safari in OS X, and Firefox in Windows 7 on geeklog.net. I've provided one screenshot of my user settings page to show that CKEditor is indeed checked.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/17/15 09:31pm
By: Laugh
All those pictures of the editors in your link actually does show the CKEditor. That is the CKEditor with the basic toolbar.
The actual story editor for the story admin defaults to the common toolbar (you can select between 4 toolbars).
Do you want the story submission editor to have a more complex toolbar?
Tom
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/17/15 09:43pm
By: bedouin
I feel a bit dumb now. I was thrown off because the admin submission page shows a specific option for an advanced editor, and the ability to switch to the full-featured mode.
Ideally I would like the full-featured mode to be the default. At the very least I would like it to be accessible. The reason I need the full-featured mode is so that users can format their text right to left, and the other modes do not allow for that. If there is a way to enable the right-to-left toggle and keep the common toolbar, that might be the best option.
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/18/15 10:02am
By: Laugh
This should get you what you want (I hope you understand a bit about html):
Text Formatted Code
<div id="text_editor" style="display: {show_texteditor};">
<dt><label for="introtext">{lang_story}</label></dt>
<dd>
<textarea cols="45" rows="15" name="introtext" id="introtext" class="wide">{story_introtext}</textarea>
</dd>
</div>
<div id="html_editor" style="display: {show_htmleditor};">
<dt><label for="fckeditor_toolbar_selector">{$LANG24[70]}</label></dt>
<dd><select id="fckeditor_toolbar_selector" name="fckeditor_toolbar_selector" onchange="changeToolbar(this.value);">
<option value="editor-toolbar1">{$LANG24[71]}</option>
<option value="editor-toolbar2" selected="selected">{$LANG24[72]}</option>
<option value="editor-toolbar3">{$LANG24[73]}</option>
<option value="Default">{$LANG24[75]}</option>
</select></dd>
<dt><label for="introtext">{lang_story}</label></dt>
<dd>
<textarea cols="45" rows="15" name="introhtml" id="introhtml" class="wide">{story_introtext}</textarea>
</dd>
</div>
I took part of this code from the Admin story editor.
Add it to the template file in your theme under /submit/submitstory_advanced.thtml
under the topic selection and remove the old story label and textarea code.
This will add in the toolbar. I added some language variables to the labels since the template variables are not filled in by Geeklog (would require modifying of core).
You can also change the selected="selected" part to what option you want to be selected first.
I tested this and it all worked well.
Tom
Re: Only Story Editors Can Use the Advanced Editor
Posted on: 04/19/15 03:45pm
By: bedouin
Thanks a million. That solved my problem perfectly, and CKEditor seems to work under iOS as well. Now I need to look at the CKEditor config and see if there is a way to make the left to right toggle appear in the basic toolbar.