Will the JCE editor also support the <q> tag in the "Format" dropdown going forward, since it seems HTML5 semantic markup is now required by the search engines? I would like an easy way to bracket quoted text with <q>…</q>.
I ceate a custon template and just click and insert that at the cursor.
I will try the method you described by creating a custom style that adds the tag.
This is the CSS I created for the 'q' tag which is the reason that I want to be able to easily bracket a selection of text with open and closing 'q' tags; enforces correct quotation form even if the user doesn't know grammar:
I get the following when using custom Styles in Plugin Parameters to create a style I called :Inline Quotes" that inserts <q>…</q> tags to selected text when editing.
<q>The filmmakers lay a foundation from the</q> spirit of the fire service<q> and the history of high rise fires that speaks to firefighters & laypeople alike.</q>
This ends up looking like: “The filmmakers lay a foundation from the” spirit of the fire service“ and the history of high rise fires that speaks to firefighters & laypeople alike.”
What your function appears to be doing is paring the line and finding and open q tag and setting a something like foundOpenQuote variable and then continuing to parse and then finds another open q tag and dutifully closes the first tag at the point in the line where the second open quote tag should have been inserted and then adds another open quote tag at the end of the selection and continues parsing and sees the final closing q tag and makes no further changes.
What the markup should end up looking like is:
<q>The filmmakers lay a foundation from the <q>spirit of the fire service</q> and the history of high rise fires that speaks to firefighters & laypeople alike.</q>
This would look like: “The filmmakers lay a foundation from the ‘spirit of the fire service’ and the history of high rise fires that speaks to firefighters & laypeople alike.” after the CSS is applied.
What I would like to see is a <footer> tag, <cite> tag and <q> tag in the selection of available tags in the Format Select Plugin so they can be available to the "Format" drop down, so that I can add <footer> and <cite> at the bottom of <blockquote> and so that I can nest <q> tags to at least four levels to ensure that articles on our site are always properly quoted.
I wanted to add for all who view this comment that the JoomlaContentEditor is a very powerful editor and makes creating very compelling and beautiful documents almost a joy. What am addressing here is a minor wrinkle, but a wrinkle that professional writers would want addressed.
I will be adding header, footer and nav to the Format list in the next update.
<cite> is already available via the Citation dialog.
Unfortunately I don't think the Tinymce formatting engine is able to accommodate nested <q> tags like you required. I will continue to experiment with the available settings to see if there is a workaround for this.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
We don't get this kind of response when asking Google, Facebook or Microsoft for help.
Being able to nest q tags is important for writers, however and is also important for semantic markup; "…" is not the same as “…”. It is also proper for nested quotes to look like “…‘…’…” instead of b]"…"…"…"[/b] Not only that, the search engines will recognize text inside q tags as a quoted item and return that when someone is looking for quotes by famous people for instance. So quoting by hand is not as SEO friendly as using the q tag.
Never-the-less I understand that you have to work with the TinyMCE engine; so thanks any way, at least I know my limitations and if others ask, I can say there is no solution for that right now, but sometime in the future we may be able to nest q tags.
The JCE editor is still the most powerful editor available for Joomla.
There are no replies made for this post yet. Be one of the first to reply to this post!
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here. Register Here »