ztsmith
  •  ztsmith
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
2011-06-03T22:57:11Z
Mobile devices such as iphone and android aren't able to display rich text editors like tinymce and ckeditor.
It would be great if there was an option to degrade to the standard YAF editor when using the forum with one of these mobile devices.
Sponsor
tha_watcha
2011-06-05T09:49:55Z
Originally Posted by: ztsmith 

Mobile devices such as iphone and android aren't able to display rich text editors like tinymce and ckeditor.
It would be great if there was an option to degrade to the standard YAF editor when using the forum with one of these mobile devices.



Agreed even the Ipad can not render the textarea elment of the ckeditor.

I added an Fallback to the YAF BBCode Editor if Mobile Device is detected.
UserPostedImage
ztsmith
  •  ztsmith
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
2011-06-05T16:20:41Z
Thank you that is awesome! Really looking forward to the next release now...
tha_watcha
2011-06-08T14:02:33Z
Originally Posted by: FusionGuy 

Originally Posted by: tha_watcha 


I added an Fallback to the YAF BBCode Editor if Mobile Device is detected.



Curious, but what build is this in? Care to share the code to accomplish this?



Currently it is only in SVN Repository, and will be included in the next Release of YAF. I edited 3 Files pmessage.ascx.cs, postmessage.ascx.cs and reportpost.ascx.cs


// Override Editor when mobile device with default Yaf BBCode Editor
            if (PageContext.IsMobileDevice)
            {
                this._forumEditor = this.Get<IModuleManager<ForumEditor>>().GetBy("1");
            }

            this.EditorLine.Controls.Add(this._forumEditor);

UserPostedImage
ztsmith
  •  ztsmith
  • 53.6% (Neutral)
  • YAF Forumling Topic Starter
2011-06-13T22:41:24Z
After playing around with this for a while it seems that falling back to the standard YAF editor isnt actually that useful on a mobile device. I think the BB code editing is too fiddly for touch screen devices and it just gets in the way.
What I have been doing instead is falling back to a basic text area. So instead of
this._forumEditor = this.Get<IModuleManager<ForumEditor>>().GetBy("1")

I am using
this._forumEditor = this.Get<IModuleManager<ForumEditor>>().GetBy("0")

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved