Please add a snippets forum where people can post and find code to enhance the default editor. (I guess one can also sign up and edit the docs website, but more effort as judged by the very slim docs there and maybe not the best place for random enhancements and hacks anyway.)
As-is, with so little documentation, no simple configuration settings or widgets for common requirements, and waiting ages (or forever) for an answer on the forum, it is a nightmare trying to figure out how to do basic things like:
-add various custom buttons: insert text, add quotes around a word, insert class, etc. (eventually add a built-in dropdown and different custom button types included),
-add your own styles/classes (I know you can but where is it explained?),
-use html 4 style tags (eventually add a one-line config option),
-stop indenting the html within tags (eventually add a one-line config option),
-etc., etc.
Can you imagine how much wasted time would be saved by all concerned?
For example, it has taken me days and tons of searching just to set some basic things and I still don't know how to insert text at the cursor via a button or dropdown list, so still cannot use the editor onsite. (Does someone have code for that very common task?) Or how to apply some of my website classes to the displayed html in the editor. (Anyone?) Or how to add my own styles to the styles dropdown. (Where is that info?)
So, please add a snippets forum where people can post and find code easily to enhance the editor. Good for everyone.
As-is, with so little documentation, no simple configuration settings or widgets for common requirements, and waiting ages (or forever) for an answer on the forum, it is a nightmare trying to figure out how to do basic things like:
-add various custom buttons: insert text, add quotes around a word, insert class, etc. (eventually add a built-in dropdown and different custom button types included),
-add your own styles/classes (I know you can but where is it explained?),
-use html 4 style tags (eventually add a one-line config option),
-stop indenting the html within tags (eventually add a one-line config option),
-etc., etc.
Can you imagine how much wasted time would be saved by all concerned?
For example, it has taken me days and tons of searching just to set some basic things and I still don't know how to insert text at the cursor via a button or dropdown list, so still cannot use the editor onsite. (Does someone have code for that very common task?) Or how to apply some of my website classes to the displayed html in the editor. (Anyone?) Or how to add my own styles to the styles dropdown. (Where is that info?)
So, please add a snippets forum where people can post and find code easily to enhance the editor. Good for everyone.
Re: please add a snippets forum to post and find code easily
Re: please add a snippets forum to post and find code easily
1) create an named array of the styles you want
2) in the config options for you CKEDITOR add in a stylesCombo_stylesSet
Re: please add a snippets forum to post and find code easily
I follow documentation, examples and forum but custom styles for combos didn't work for me.
This is my code:
Help please!
Thanks.
Re: please add a snippets forum to post and find code easily
This is very weird as your code works fine for me. I added an image, and when I selected the styles (with the image selected) it showed me the four options and when I selected them it moved the image around the editable area. And when I selected the styles without an image selected it showed me nothing in the style dropdown as to be expected.
Can you give me more information on how it wasn't working for you?
Using the _samples/replacebycode.html page as my base.
I inserted
Re: please add a snippets forum to post and find code easily
I resolved my problems.
I did't see the elements in the drop-down menu because I did't select any image... O_O
Now I have another problems.
For 'Blocks Stiles' I see them, but I can't see the preview in the drop-down and when I apply the style, the editor don't show the style.
I have the styles in a css file that I include in the page.
This is the code