- Posts: 5
COMMUNITY FORUM
NicEdit WYSIWYG .. not so nice!!
- Dwight Barnard
- Topic Author
- Offline
- New Member
Less
More
14 years 4 months ago #85974
by Dwight Barnard
NicEdit WYSIWYG .. not so nice!! was created by Dwight Barnard
Hi there,
Having a WYSIWYG editor in K2 v2.3 is a welcome addition, however I came across a very annoying issue.
NicEdit has an unwanted function that I have not been ale to solve. By default NicEdit places a <br> in the content, might not sound like a problem until you start building complex templates you need the extra fields to remain empty in order for the php switch to work ie:
if(!empty($custom[0]->value))
Every time you edit/save/apply changes to a K2 item with an empty textarea extra field, NicEdit places a <br> in the content of that textarea extra field. Anyone know how to make it go away permanently?
No solution on the NicEdit forums.
Personally I'd like to see JCE replace NicEdit but that is not possible at present as far as I am aware.
Anyone else having this issue?
Having a WYSIWYG editor in K2 v2.3 is a welcome addition, however I came across a very annoying issue.
NicEdit has an unwanted function that I have not been ale to solve. By default NicEdit places a <br> in the content, might not sound like a problem until you start building complex templates you need the extra fields to remain empty in order for the php switch to work ie:
if(!empty($custom[0]->value))
Every time you edit/save/apply changes to a K2 item with an empty textarea extra field, NicEdit places a <br> in the content of that textarea extra field. Anyone know how to make it go away permanently?
No solution on the NicEdit forums.
Personally I'd like to see JCE replace NicEdit but that is not possible at present as far as I am aware.
Anyone else having this issue?
Please Log in or Create an account to join the conversation.
- william white
- Offline
- Platinum Member
Less
More
- Posts: 3722
14 years 4 months ago #85975
by william white
Replied by william white on topic NicEdit WYSIWYG .. not so nice!!
Can you just test for the
If not empty and if not exactly equall to ""
If not empty and if not exactly equall to ""
Please Log in or Create an account to join the conversation.
- vtiger
- Offline
- Premium Member
Less
More
- Posts: 83
14 years 4 months ago #85976
by vtiger
Replied by vtiger on topic NicEdit WYSIWYG .. not so nice!!
From SVN: (i dont know if is it finished...)
code.google.com/p/joomlaworks/source/detail?r=515
code.google.com/p/joomlaworks/source/detail?r=516
code.google.com/p/joomlaworks/source/detail?r=515
code.google.com/p/joomlaworks/source/detail?r=516
Please Log in or Create an account to join the conversation.
- Dwight Barnard
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
14 years 4 months ago #85977
by Dwight Barnard
Replied by Dwight Barnard on topic NicEdit WYSIWYG .. not so nice!!
Hi William,
I did try building a switch but could only get it to hide the field. If I echo the field it did not respect the condition and output the also, perhaps I missed something in the switch?
William White said:Can you just test for the If not empty and if not exactly equall to ""
I did try building a switch but could only get it to hide the field. If I echo the field it did not respect the condition and output the also, perhaps I missed something in the switch?
William White said:Can you just test for the If not empty and if not exactly equall to ""
Please Log in or Create an account to join the conversation.
- Dwight Barnard
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
14 years 4 months ago #85978
by Dwight Barnard
Replied by Dwight Barnard on topic NicEdit WYSIWYG .. not so nice!!
Hi Lucas, I have been in contact with Ryan from JCE and he said he was working with the guys from K2 to try a fix for JCE but could not give me a timeframe on delivery. I will follow up and see how far along they are and let you know.
Lukas said:From SVN: (i dont know if is it finished...) code.google.com/p/joomlaworks/source/detail?r=515
code.google.com/p/joomlaworks/source/detail?r=516
Lukas said:From SVN: (i dont know if is it finished...) code.google.com/p/joomlaworks/source/detail?r=515
code.google.com/p/joomlaworks/source/detail?r=516
Please Log in or Create an account to join the conversation.
- vtiger
- Offline
- Premium Member
Less
More
- Posts: 83
14 years 4 months ago #85979
by vtiger
Replied by vtiger on topic NicEdit WYSIWYG .. not so nice!!
thanks for info
l
l
Please Log in or Create an account to join the conversation.
- Dwight Barnard
- Topic Author
- Offline
- New Member
Less
More
- Posts: 5
14 years 4 months ago #85980
by Dwight Barnard
Replied by Dwight Barnard on topic NicEdit WYSIWYG .. not so nice!!
Ryan from JCE is of the opinion that the fix for JCE and extra fields is complete, but did advise that if it is on SVN we should use it at own risk.
If anyone can get hold of someone from K2 to see how safe we would be using it in production environment that would be great.
If anyone can get hold of someone from K2 to see how safe we would be using it in production environment that would be great.
Please Log in or Create an account to join the conversation.