Hi
When using inline editor the Source button doesn't appear in the popup toolbar.
Here is my toolbar setup:
toolbar:
[
[ 'Font', 'FontSize', 'TextColor' ],
[ 'Bold', 'Italic', 'Underline', 'Strike' ],
[ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ],
[ 'NumberedList', 'BulletedList', 'Outdent', 'Indent' ],
[ 'PasteText', 'PasteFromWord' ],
[ 'Table', 'HorizontalRule', 'Templates', 'Source' ]
],
I also tried 'SourceDialog' instead of Source but none of them show the button.
Of course the source plugin is into the downloaded package.
If you want to use the
If you want to use the SourceDialog button, which will work with inline editor, you need the sourcedialog plugin. The Source button is added by the sourcearea plugin and won't work with inline editor. They can be easily confused, so you can check it one more.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Thanks for your help, I'll
Well I've downloaded the full package (which contains the Source Dialog plugin) and it still doesn't show in my toolbar. Here is the setup of CKEditor:
$('#text').ckeditor(function()
{
},
{
toolbar:
[
[ 'Font', 'FontSize', 'TextColor' ],
[ 'Bold', 'Italic', 'Underline', 'Strike' ],
[ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock' ],
[ 'NumberedList', 'BulletedList', 'Outdent', 'Indent' ],
[ 'PasteText', 'PasteFromWord' ],
[ 'Image', 'Table', 'HorizontalRule', 'Templates', 'SourceDialog' ]
],
enterMode: CKEDITOR.ENTER_BR,
templates_files: [ 'js/templates.min.js' ]
})
Did I miss anything?
The Full package doesn't
The Full package doesn't include SourceDialog. You have to add it via CKBuilder (if you didn't already). I created a Full package and added SourceDialog, then opened samples/inlinetextarea.html and the Source button appears in inline mode. Maybe you need to clear your cache?
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Well I don't get it. I'm
Well I don't get it. I'm going to CKBuilder and check "Full Package" as the base and I can see that "Source Dialog" is already listed in the full package list (left panel). I cannot find it in the right panel.
So I download this custom package and add "SourceDialog" in the toolbar setup as shown in my first post and still no button in the toolbar.
Caches cleared, still not showing.
I've just checked and there's
I've just checked and there's no SourceDialog pluin in "Selected plugins" in full preset. It is in the "Available plugins" and you have to add it to "Selected plugins".
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
That's crazy. I've just
That's crazy. I've just checked again.
From the download page I click on "Or let me customize CKEditor" then the big red button. It redirects me to Builder page.
From the builder page I click on "Full" and the "Selected Plugins" panel contains "Source Dialog".
I attached a capture of the page that displays immediately on load.
For information I'm on Safari Mac OSX Mavericks.
Attachments:
This is by design
This is by design, actually. It looks like you've got confused a bit by the CKBuilder interface. Whenever you go, for example, to addons repository and add some plugins to the basket, it would be a pity if you lost all your selection after simply changing the preset on the online builder page. That's why there is a separate button, called "Reset preset" which simply cleans up the list of selected plugins to the one that are available in selected preset.
In short, to start from scratch: select any preset you wish, click the "Reset preset" button and start adding the additional plugins you like.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
In short, to start from
In short, to start from scratch: select any preset you wish, click the "Reset preset" button and start adding the additional plugins you like.
So that's what I did:
The source button is still not showing in the toolbar. As a reminder this is how I set up the editor (jQuery) :
$('#text').ckeditor(function()
{
},
{
toolbar:
[
[ 'Font', 'FontSize', 'TextColor' ],
[ 'Bold', 'Italic', 'Underline', 'Strike' ],
[ 'JustifyLeft', 'JustifyCenter' ],
[ 'NumberedList', 'BulletedList', 'Outdent', 'Indent' ],
[ 'PasteText', 'PasteFromWord' ],
[ 'Image', 'Table', 'HorizontalRule', 'SourceDialog' ]
]
})
Is anything missing in my toolbar list?
Edit: if I just remove the toolbar list from the CKEditor's setup the source button is shown as the rest of the full toolbar, so it seems to be related with custom toolbar item list!
Ekhem... I did not expect
Ekhem... I did not expect that. The button is called "Sourcedialog", not "SourceDialog". This is some odd exception, because all other buttons use capital letters for all words.
I'm sorry for wasting so much of your time.
PS. This is a good reason to make this case insensitive. If not in CKEditor 4.x, definitely in CKEditor 5.x.
Piotrek (Reinmar) Koszuliński
CKEditor JavaScript Developer
--
CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Oh oh oh... well at least it
Oh oh oh... well at least it works now :)
Thanks for your help.