<?xml version='1.0' encoding='UTF-8'?>
<rss version='2.0'>
	<channel>
		<title>cotonti.com : CKeditor - How can we change the output?</title>
		<link>https://www.cotonti.com</link>
		<description>Останні повідомлення в темі</description>
		<generator>Cotonti</generator>
		<language>en</language>
		<pubDate>Sun, 05 Apr 2026 09:58:48 -0000</pubDate>

		<item>
			<title>Macik</title>
			<description><![CDATA[<p>
	There is another way that meet you needs. It's improvement of default Image dialog for adding Rel attribute.</p>
<p>
	Here is the sample code for (ckeditor/lib/plugins/image/dialogs/image.js):</p>
<pre class="brush:jscript;first-line:1393;">
{
    type : 'text',
    id : 'txtdlgGenRel',
    label : editor.lang.link.rel,
    'default' : '',
    validate : function() {
	var regexValidRel = /^\w+$|^$/i;
	var aMatch = this.getValue().match(regexValidRel), isValid = !!(aMatch);
	if (!isValid)
	    alert('Not allowed type of Rel');
	return isValid;
    },
    setup : function(type, element) {
	if (type == IMAGE) {
	    var genRel = element.getAttribute('rel');
	    if (!genRel &amp;&amp; element.$.prop('rel'))
		genRel = element.$.prop('rel');
	    this.setValue(genRel);
	    var regexValidRel = /^\w+$|^$/i;
	    var rel = element.$.prop('rel');
	    aMatchRel = (rel ? rel : '').match(regexValidRel);

	    this.attributesInStyle = {
		rel : !!aMatchRel
	    };
	}
    },
    commit : function(type, element) {
	if (type == IMAGE &amp;&amp; (this.getValue() || this.isChanged())) {
	    element.setAttribute('rel', this.getValue());
	}
    }
}
</pre>
<p>
	Full code is here: <a href="http://www.cotonti.com/pastebin/170">http://www.cotonti.com/pastebin/170</a></p>
<p>
	 </p>
]]></description>
			<pubDate>Пн, 04 Чер 2012 00:18:23 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6954&d=0#post34563]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Sorry, I missed the link. It doesn't make the solution much easier though, I only partially understand what they mean and how it would help to allow the rel attribute to work :)</p>
<p>
	Look at it the other way: CKEditor and HTML isn't claimed to be "better" or "more up2date". CKEditor is just extremely popular and has a lot (even too many) features. We bundle it by default because: a) non-tech people want WYSIWYG, b) CKE is known to be good for them and it has so many features. But it doesn't mean that it's the best.</p>
<p>
	You can pick any markup parser and any editor you like most with Cotonti and if I were you I would do so ;)</p>
]]></description>
			<pubDate>Нд, 03 Чер 2012 19:26:57 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6954&d=0#post34558]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>
	I am not sure what you mean, I liked to the output explanation in my above post (I think, I have no idea what they are on about):<br />
	http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Output_Formatting<br />
	Or maybe you need this?<br />
	http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.htmlWriter.html<br /><br />
	But, I always prefer to listen to people with more knowledge than me. So if you advice me to use those others I will try them <img alt="wink" height="20" src="http://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/wink_smile.gif" title="wink" width="20" /><br />
	I will try to make my Slimbox code work with those editors and come back here if those too do remove the <code>rel=&amp;quot;lightbox&amp;quot;</code> part</p>
<p>
	<br />
	About markitup!, the site should have an html editor with lots of options etc and I think it is time I too keep on moving forward and thus should not stick with Markitup, no matter that I have issues while using those new editors. I just have to adapt <img alt="cool" height="20" src="http://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/shades_smile.gif" title="cool" width="20" /><br />
	And with my posting troubles I meant using the editor here, as you see above I always screw up adding codes and have troubles adding links (I know, I should be ashamed, but till now I did not manage to make a single correct post in 1 time).</p>
]]></description>
			<pubDate>Нд, 03 Чер 2012 15:48:05 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6954&d=0#post34556]]></link>
		</item>
		<item>
			<title>Trustmaster</title>
			<description><![CDATA[<p>
	Could you share a link that tells about CKEDITOR.htmlWriter?</p>
<p>
	If you don't like CKE, you should try <a href="http://www.cotonti.com/extensions/editor-parser/elrte">elRTE</a> or <a href="http://www.cotonti.com/extensions/editor-parser/cleditor">clEditor</a>, they are more simple and transparent. Or if you don't like WYSIWYG, you can stick with markItUp! and edit contents in source mode.</p>
]]></description>
			<pubDate>Нд, 03 Чер 2012 14:17:09 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6954&d=0#post34555]]></link>
		</item>
		<item>
			<title>foxhound</title>
			<description><![CDATA[<p>
	On a test site I am working on I am trying to add <a href="http://www.digitalia.be/software/slimbox2#download" rel="nofollow">Slimbox</a> since the Sienna plugin does not work on <a href="http://www.cotonti.com/forums?m=posts&amp;q=6950">0.9.9</a> and to make it work I need to add the following code to all images I want to use Slimbox on: rel="lightbox".<br />
	However, if I edit the code of the page on which the images are the CKeditor constantly removes the <code>rel="lightbox".</code> I have already set the HTML Purifier tidy level to "none" to not remove my code but it keeps getting removed.<br /><br />
	So, I figured I might have to change the CKeditor output and searched with a google a bit. I found that to change the output you need to change the <code><a class="external text" href="http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Output_Formatting" rel="nofollow">CKEDITOR.htmlWriter</a> but I can not find such a file in the plugin. Since this was converted to a Sienna plugin should I change the output elsewhere? I checked all files (except images) to see if any of those files contained output but I simply do not see it.</code></p>
<p>
	<code>Any help is very much appreciated <img alt="smiley" height="20" src="http://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/regular_smile.gif" title="smiley" width="20" /><br /><br />
	PS: I have big issues to get used to this editor, my text/links/code anything always is completely screwed up <img alt="blush" height="20" src="http://www.cotonti.com/plugins/ckeditor/lib/plugins/smiley/images/embaressed_smile.gif" title="blush" width="20" /></code><br />
	 </p>
]]></description>
			<pubDate>Нд, 03 Чер 2012 13:22:11 -0000</pubDate>
			<link><![CDATA[https://www.cotonti.com/ua/forums?m=posts&q=6954&d=0#post34552]]></link>
		</item>
	</channel>
</rss>