Giter VIP home page Giter VIP logo

Comments (9)

riklaunim avatar riklaunim commented on September 10, 2024

look at ckeditor config for it and then map it to the Python dictionary that django-ckeditor uses.

from django-ckeditor.

ali-hallaji avatar ali-hallaji commented on September 10, 2024

thank you for reply.
but don't corrected!
I use of django-ckeditor-updated.
Can you give me config for full feature toolbar in django settings here?

from django-ckeditor.

riklaunim avatar riklaunim commented on September 10, 2024
CKEDITOR_CONFIGS = {
    'default': {
        'toolbar': 'Full',
        'height': 300,
        'width': 300,
    },
}

This is the full config.

from django-ckeditor.

ali-hallaji avatar ali-hallaji commented on September 10, 2024

No,/
I tested this config,but I don't see justify button or flash or copy to word or direction...
this is not work!

from django-ckeditor.

riklaunim avatar riklaunim commented on September 10, 2024

Then look into ckeditor documentation on how to enable them. This "default" config maps to what will be passed to the ckeditor instance. I didn't used all the fancy ckeditor features ;)

from django-ckeditor.

ali-hallaji avatar ali-hallaji commented on September 10, 2024

please say to me how to add pre,direction,justify?
These not in my toolbar

from django-ckeditor.

paolodina avatar paolodina commented on September 10, 2024

Hello, I have a similar problem as the OP. This is my configuration in settings.py:

CKEDITOR_CONFIGS = {
    None: {
        'toolbar': [
            [ 'Link','Unlink' ],
            [ 'Image','Table','HorizontalRule','SpecialChar','-','SpellChecker' ],
            [ 'Source','About','InsertSnippet','BGColor','SimpleLink', 'Select', 'SelectToText', 'SelectorUpdateSelector','SimpleLink' ],
            [ 'Format','Font','FontSize' ],
            [ 'TextColor' ],
            [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ],
            [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ],
        ]
    },
}

Everything works perfectly with the editor, but the only tools I see are:

  • Link, Unlink - OK
  • Image, Table, Insert Horizontal Line, Insert Special Character. Missing: separator, spell checker.
  • Source, About. Missing: insert snippet, bgcolor, simple link, select, select to text
  • Paragraph Format. Missing: font, font size
  • Missing: text color
  • Bold, Italic, Strike, Remove Format. Missing: Underline, Subscript, Superscript, separator
  • Numbered list, Bullet list, Decrease indent, Increase Indent, Block quote Missing: Justify left, Justify center, Justify right, Justify block, separators

I used the same naming shown in ckeditor example.

Any hint greatly appreciated.

from django-ckeditor.

josecostamartins avatar josecostamartins commented on September 10, 2024

So, i've manage to get textcolor and bgcolor running.
I had to download the colorbutton (http://ckeditor.com/addon/colorbutton) addon, and place it inside <many_folders>/ckeditor/plugins and in my settings i placed the following configuration:

CKEDITOR_CONFIGS = {
    'default': {
        'toolbar': None,
        'extraPlugins': 'colorbutton'
    },
}

Edit:
I believe the best way to package this app is to use ckeditor full preset option; and if somebody needs something more, he should fork, modify and then install directly from his "personal" fork on github.

what do you guys think?

from django-ckeditor.

riklaunim avatar riklaunim commented on September 10, 2024

I've switched from standard to full package which has colorbutton and other plugins. Should solve few similar cases.

from django-ckeditor.

Related Issues (20)

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.