Page 1 of 4 123 ... LastLast
Results 1 to 10 of 36

Thread: CKEditor 0.1

  1. #1
    Admin & Design JonH's Avatar
    Join Date
    Jun 2009
    Location
    New Braunfels, Texas
    Posts
    248
    Thanks
    57
    Thanked 49 Times in 30 Posts

    Default CKEditor 0.1

    CKEditor WYSIWYG Text Editor
    Version: 0.1
    Author:Jon Harvey
    Created on: 2010/09/24
    Last Updated:
    N/A
    Tested on: Hotaru 1.4.1
    Plugins Required: Submit 3.2 (tested on)
    Plug & Play: Yes
    Supported: Yes

    Description
    Integrates CKEditor (formally FCKeditor) WYSIWYG editor to the submit step 2 and the edit submission page summary text. (version 3.4.1)

    Instructions
    1. Go to Admin->Plugin Settings->Submit Plugin and where it says "Allowed HTML tags in post description" add these tags and save:
    <b><font><img><p><a><strong><ul><li><ol><u><em><sp an><h1><h2><h3><hr><strike><blockquote><del> (add more if you like but not tested)
    2. Upload the "ckeditor" folder to your plugins folder. Install it from Plugin Management in Admin.
    3. Clear Hotaru's cache in maintenance panel before use.

    Notes:
    • The extra space the text editor takes up gets a little crowded in the default template so I attached a roughly modified submit2.php and submit_edit.php that adds a little more room. Upload these to your theme's folder.
    • There are many more available buttons, I just included the basics. The configuration variables are in javascript/config.js.
    • See the Ckeditor site to configure and add more buttons, skins, jquery etc.







    Revision History
    v.0.1 2010/09/24 - JonH - Released first version

    Please click "Rate Thread" and give this plugin a rating. Thank you.
    Attached Files Attached Files


  2. #2
    Admin & Design JonH's Avatar
    Join Date
    Jun 2009
    Location
    New Braunfels, Texas
    Posts
    248
    Thanks
    57
    Thanked 49 Times in 30 Posts

    Default Yui Editor

    I first made the Yahoo YUI2 editor a plugin but found it a little slow, buggy, big for the submit page and seems to take more code to configure but here it is anyways
    Attached Files Attached Files

  3. Thanked by:


  4. #3
    Former lead dev Nick's Avatar
    Join Date
    Jun 2009
    Location
    Kakamigahara, Japan
    Posts
    2,859
    Blog Entries
    88
    Thanks
    483
    Thanked 808 Times in 527 Posts

    Default

    This is officially Hotaru's 100th free plugin. Yay!

  5. #4
    Admin & Design JonH's Avatar
    Join Date
    Jun 2009
    Location
    New Braunfels, Texas
    Posts
    248
    Thanks
    57
    Thanked 49 Times in 30 Posts

    Default

    If you copy the html tags above change the <span> tag it has a space in the middle but it isn't there when I go to edit post.

  6. #5
    Senior Member
    Join Date
    Sep 2009
    Posts
    437
    Thanks
    164
    Thanked 56 Times in 43 Posts

    Default

    Still on v.1.3.0, can wait to check it out after upgrading to v 1.4.1. Big thanks!

  7. #6
    Admin & Design JonH's Avatar
    Join Date
    Jun 2009
    Location
    New Braunfels, Texas
    Posts
    248
    Thanks
    57
    Thanked 49 Times in 30 Posts

    Default

    Quote Originally Posted by nothingman View Post
    Still on v.1.3.0, can wait to check it out after upgrading to v 1.4.1. Big thanks!
    It should work on 1.3.x unless the plugin hooks have changed, it's a very simple plugin. 1.4.1 is just what I tested it on.

  8. #7
    Senior Member
    Join Date
    Sep 2009
    Posts
    437
    Thanks
    164
    Thanked 56 Times in 43 Posts

    Default

    Hi Jon, I've installed it and it works perfectly (1.4.1). However, when I hit enter (insert a paragraph), the output looks like this (too much spacing between the paragraphs) Any workaround for this?



    I've looked at the ckeditor forums and found this. I don't know if this is related to my issue or not but pasting it here. This fellow is talking about calling an instance of CK Editor so wanted to know in which file of the CKEditor plugin are we calling an instance of CK Editor? Any idea if this fellow's comment will solve my problem?

    Source: CKeditor adds new line and tab space after P tag

    I was able to overcome this issue by using the following code when I called an instance of CK Editor


    this.dataProcessor.writer.setRules( 'p',
    {
    indent : false,
    breakBeforeOpen : true,
    breakAfterOpen : false,
    breakBeforeClose : false,
    breakAfterClose : true
    });
    EDIT: Example post on my site.
    Last edited by nothingman; 10-27-2010 at 08:50 AM.

  9. #8
    Admin & Design JonH's Avatar
    Join Date
    Jun 2009
    Location
    New Braunfels, Texas
    Posts
    248
    Thanks
    57
    Thanked 49 Times in 30 Posts

    Default

    The suggestion from the CkEditor forum looks like that might fix it. Hopefully they'll fix it in the next version def. a bug.

    I think the code you pasted was added in the plugin file ckeditor.php here:
    Code:
    <script type='text/javascript'> window.onload = function() {CKEDITOR.replace( 'post_content' );};</script>
    I don't have the files on this PC to look at it maybe replace the above with something like this:
    Code:
    <script type='text/javascript'> 
    window.onload = function() 
    {
    CKEDITOR.replace( 'post_content' );
    this.dataProcessor.writer.setRules( 'p',{
    indent : false,
    breakBeforeOpen : true,
    breakAfterOpen : false,
    breakBeforeClose : false,
    breakAfterClose : true
    }); 
    };</script>
    I'm sure there's a way to add it to the plugin's javascript/config.js file instead but it has to be wrote differently like the ":" are replaced with "=" but not 100% sure what else is different!
    Last edited by JonH; 10-28-2010 at 03:35 AM. Reason: clarify my hasty reply

  10. Thanked by:


  11. #9
    Junior Member
    Join Date
    Oct 2010
    Posts
    16
    Thanks
    0
    Thanked 1 Time in 1 Post

    Default Sweet plugin, same problem

    This is an awesome plugin, makes it so much easier to write in complex text. I have the same problem as the other guy, but since its only styling issue I'm sure it will get fixed soon.

  12. #10
    Senior Member
    Join Date
    Sep 2009
    Posts
    437
    Thanks
    164
    Thanked 56 Times in 43 Posts

    Default

    Thanks Jon. I tried that but didn't work - cleared the cache files (browser and Hotaru's). Like you've mentioned, it must be a bug of some sorts.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •