Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CKeditor, "more" tag...
#1
From time to time someone asks for excerpts that don't strip html tags (both in blog/news plugins and GS itself).

Would it be possible to have buttons in CKeditor that let you easily insert html snippets like:

Code:
<a name="more"></a>

or:

<!--more-->

and/or:

&lt;!--more--&gt;

If so, we could have a php function that extracts just the content until the "more" tag, to have this kind of "rich" excerpt.
(Some </div> or </p> could be missing after stripping it, so something should be done to fix this. I have to take a look at how WP does...)

Thoughts?
Reply
#2
We discussed this somewhere else, there are a few implementations of this.
ckeditor has default support for pagebreaks, we would need to determine what to output.

Probably stick with wordpresses implementation or drupals.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
I recently made a couple of buttons to ckeditor for another CMS, which inserts {cut} and [page]
Reply
#4
you can do that with a template

I described it in the german website:

http://www.get-simple.de/editor-plugins/...einsetzen/
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#5
@Oleg06
I'm curious, can you post more info? (or PM it to me if you prefer)

@Connie
Thank you, I bookmark it for future reference.
Reply




Users browsing this thread: 1 Guest(s)