Hi,
I'd like to add a couple of custom tags (I'm using this in a forum, so need [quote] and [code])
I have the code needed, but am struggling to find an example on how I can add this custom "wrap" around some content.
Something like:
<hr>
--- QUOTE-----
their content goes here
</hr>
TIA
Andy
I'd like to add a couple of custom tags (I'm using this in a forum, so need [quote] and [code])
I have the code needed, but am struggling to find an example on how I can add this custom "wrap" around some content.
Something like:
<hr>
--- QUOTE-----
their content goes here
</hr>
TIA
Andy
Re: New custom tags
Surely adding custom HTML "wrapping" isn't that hard? I just can't find any demos on how to do it :/
Cheers
Andy
Re: New custom tags
Re: New custom tags
Thanks, how would I make tha ta button too? I guess that would just go in my JS code, but I obviously need to invoke it somehow
TIA
Andy
Re: New custom tags
to
Re: New custom tags
editor.getSelection().getNative() returns [object] rather than the actual text.
Re: New custom tags
Re: New custom tags
Mmm, looks like I'm gonna have to learn how to write a plugin, from scratch
I was hoping there would be one already available.
Surely people have wanted to do stuff like this before:
TEST
...they highlight "TEST", and then that add <pre></pre> around the content ... so you end up with:
<pre>TEST</pre>
??
TIA
Andy