tinyMCE plugins in Wagn+discussion

Hi there,

 

In order to support consistent styling, Wagn has to remove unwanted styling from cut-and-pasted content (eg fonts from other blogs) by stripping out inline "style" attributes.  So if content comes in looking like <span style="text-decoration:underline">, that styling gets stripped.

 

The problem is that tinyMCE uses these attributes for certain tools/plugins.  At present those won't work on Wagn.  In the long run, we expect to either (a) modify tinyMCE to use css classes, which would keep the styling power in the hands of Wagneers, or (b) build a more nuanced html cleaner and/or configuration options to address this issue.  

 

If you have ruby skills, you can look into modifying lib/wiki_content.rb to meet your needs, though I should caution that in service of the above goals we expect to modify that file in coming releases, so I'd recommend that you comment heavily.

 

It wasn't clear to me whether this non-saving issue would explain all your problems, or whether you're having a deeper problem with tables?


Hello,

 

I am not sure if i've been able to clearly explain my issue. Basically, the issue that i am facing is not with copy/pasting items from one source to another but with the data we write ourselves in the editor.

 

Most of the tinyMCE plugins icons such as table (for creation, update etc) do not appear in the editor toolbar with the configurations that i have given above which are taken from the official tinyMCE website. The editor appears to be broken with this version of wagn. I am not sure if this would be a jquery issue or this has something to do with tinyMCE itself?

 

Regarding the non-saving issue of text formatted with underline (U) icon, if i format any text and underline it with the editor, it does appear as bold until i click the submit button which then loses the changes and the text no longer appear as underlined.

 

I completely understand that the copy/pasted formatting is stripped for styling consistency issues but this issue is different.

 

Let me know if any more details are required?

  --Ali ibrahim.....2012-11-14 02:58:49 +0000


style tags are stripped regardless of whether they were pasted originally. I only mentioned the copy/paste to explain the rationale for this functionality.

 

does the editor work with the original configuration? if so, the most likely answer is that something is wrong with the javascript in your configuration (perhaps the trailing comma?)

  --Ethan McCutchen.....2012-11-14 03:49:52 +0000


Hi Ethan,

I have attached screenshot above depicting that the table controls are not appearing.

 

Here is my configuration once again (which i have reviewed for any commas or semicolons errors)

 

 

width: '100%',

auto_resize : true,

relative_urls: false,

theme : "advanced",

plugins : "lists,table",

theme_advanced_buttons1 : "formatselect,bold,italic,underline,strikethrough,fontselect,fontsizeselect,"

+ "separator, justifyleft, justifycenter,justifyright,justifyfull,separtor, outdent, indent, |separator, blockquote,bullist,numlist,hr,separator,undo,redo,"

+ "link,code",

theme_advanced_buttons2 : "tablecontrols",

theme_advanced_buttons3 : "",

theme_advanced_path : false,

theme_advanced_toolbar_location : "top",

theme_advanced_toolbar_align : "left",

theme_advanced_resizing : true,

theme_advanced_blockformats : "p,h1,h2"

 

 

Other plugins also dont seem to be working with wagn.

 

 

  --Ali ibrahim.....2012-11-14 04:27:37 +0000


I was able to reproduce the problem but didn't immediately see the problem. I'll create a ticket, but, in candor, without funding this is unlikely to be a near term priority.

  --Ethan McCutchen.....2012-11-14 04:54:41 +0000


this was fixed so that other plugins will now work. closing.

  --Ethan McCutchen.....2013-03-13 01:27:25 +0000