Hi everyone, I add standard package in my web site, and I don't uderstand why I can't add table, cause table plugin included in standard package. Do I need CKfinder for that?Can anyone help me, please?
Thu, 11/27/2014 - 19:25
#1
config
did you added it in your config toolbar?
You certainly don't need
You certainly don't need CKFinder to add tables. Is the table button there but nothing is happening when you press it, or is the button simply not there? Is it the official standard package or a customized version? Are you getting any errors in the browser? Which browsers and CKEditor version are you using?
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
I downloaded official
I downloaded official standard package 4.4.6 version.The buttons apear in the editor, but when I try to add table and fill the tables's lines and then submit, nothing is moved to database..All is work in my editor is bold, italic, styles and format.. I actually haven't added anything in my config.js file, I try to find how to do it from ckeditor documentation, but I couldn't find anything usefull for me.And thanks for your reply.
I just added it in my config
I just added it in my config.js, but it didn't help. Still doesn't work my editor.
Still doesn't work me editor.
Can anyone help me to understand the problem I have.
Show your config
Can you show us the code you have in the html for your CKeditor, the javascript code and your config file?
Now I have to little information to help you :)
Hello Pieter, thanks for your reply
This is the part of my php code
<textarea name="text_user" rows="20" cols="60" ><?php echo $text_user; ?></textarea>
<script>
CKEDITOR.replace("text_user");
</script>
<br>
<label>Акции:</label><textarea name="act_user" id="act_user" rows="20" cols="60" ><?php echo $act_user; ?></textarea>
<script>
CKEDITOR.replace("act_user");
</script>
and the javascript connection
<script src="ckeditor/ckeditor.js"></script>
I tried default config.js, that comes with installation and also with this one, both of them does'nt work,
CKEDITOR.editorConfig = function( config )
{
config.allowedContent = true;
//config.allowedContent = 'table tr td u em strong ul li;a[!href,target]';
config.toolbar = 'MyToolbar';
config.toolbar_MyToolbar =
[
{ name: 'document', items : [ 'NewPage','Preview' ] },
{ name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll','-','Scayt' ] },
{ name: 'insert', items : [ 'Table','HorizontalRule','Smiley','SpecialChar','PageBreak'
,'Iframe' ] },
'/',
{ name: 'styles', items : [ 'Styles','Format', 'Font', 'FontSize' ] },
{ name: 'basicstyles', items : [ 'Bold','Italic', 'Underline', 'Strike','-','RemoveFormat' ] },
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote' ] },
{ name: 'links', items : [ 'Link','Unlink','Anchor' ] },
{ name: 'tools', items : [ 'Maximize','-','About' ] }
];
};
One more thing, when I add this line my config file -
config.allowedContent = 'table tr td u em strong ul li;a[!href,target]'; , I can add table, but only table , the other options don't work.
Thanks a lot...
CKE - test setup
I don't see a problem ..
Made a test setup and it worked with your configuration.
steps to reproduce:
1. create html file (name it for example cke.html) with content:
2. download the latest release of CKE: http://download.cksource.com/CKEditor/CKEditor/CKEditor%204.4.6/ckeditor_4.4.6_full.zip
3. create the structure:
4. give the config.js the following structure:
5. this should give you a fully working cke setup
Let me know if this works for you or not :-)
Dear Pieter
I followed all the steps you told me, the editor shoes that everything works, but when I try to connect to PHPMyAdmin, send the content of textarea to mysql and then Select data and show it in my page, nothing works. When I just type text whitout editing it in editor ,text goes to database, but when I try to edit the text, or insert table and then press submit button, nothing goes to database, and I don't understand why?
Thanks
PHP vs Javascript
OK, thought the original problem was that the table module was not working but this is already something else?
Are you filling up your CKE through PHP or javascript?
Some years ago I could help you on the PHP side but I quit writhing in that language..
If you are using javascript to fill up the CKE, you can use something like this:
Something else I thougth about, I do something similar like you, filling cke and saving its content to a database en after filling it up again.
How do you put your content of the database in your CKE? You first have to fill up the textarea with the content of the database and than put the cke over it so everything is initialize correctly.
but off the record: try what I just said but step away from that textarea and use following code blob for your container for CKE. Mayby the textarea is doing some stuff that blocks you on what you are doing.
If the problem is not filling up your CKE, than you are on the wrong forum, this is for CKEditor and I keep thinking more and more that it is not CKE that is the problem here :)