GothicWizard
2019-04-21T17:40:21Z
If you look here, https://worldofdarkness.news/Forums/g/posts/m/50/V20-vs-DA 

You will see YAF is rendering posts with double line breaks. In the editor it looks fine, and in other modules this does not happen only in YAF. There seems to be some setting I am overlooking to fix this, where should I look in YAF settings? Thank you!
Sponsor
tha_watcha
2019-04-22T01:56:15Z
Which Yaf Version? I remember this was already fixed. And also which editor are you using?
UserPostedImage
GothicWizard
2019-04-22T02:22:26Z
Originally Posted by: tha_watcha 

Which Yaf Version? I remember this was already fixed. And also which editor are you using?



yaf 2.2.4.15 DNN 9.2.2 and your CKEDITOR 2.01.20

GothicWizard
2019-04-22T19:36:46Z
For the record, I upgraded to your newest version of YAF and still shows the double BR.
tha_watcha
2019-04-25T07:41:31Z
I can confirm the issue. the only solution is to go to the editor settings and define a custom js file in the portal home directory with the content...

CKEDITOR.on( 'instanceReady', function( ev ) {
var blockTags = ['div','h1','h2','h3','h4','h5','h6','p','pre','li','blockquote','ul','ol',
  'table','thead','tbody','tfoot','td','th',];

  for (var i = 0; i < blockTags.length; i++)
  {
     ev.editor.dataProcessor.writer.setRules( blockTags[i], {
        indent : false,
        breakBeforeOpen : false,
        breakAfterOpen : false,
        breakBeforeClose : false,
        breakAfterClose : false
     });
  }
} );


the problem is i would not recommend to use the editor with yaf. the ckeditor that is included with yaf is the better option!
UserPostedImage
GothicWizard
2019-04-30T00:14:58Z
So do I name the file anything I want with the extension .js then? Because I copy that text into a text file, named it editor.js and put it int he root of my portal. I go into the CKEDITOR config and use the pull down menu under custom js file and no option appears to select. Wondering if I have to name it something specific for it to be picked up?
tha_watcha
2019-04-30T13:43:46Z
Sorry i forgot, you need to add js file types to the list of allowed file types in the dnn host settings first.
UserPostedImage
GothicWizard
2019-05-01T22:58:07Z
Originally Posted by: tha_watcha 

Sorry i forgot, you need to add js file types to the list of allowed file types in the dnn host settings first.



I put "js" as a allowed extension in the DNN setting. But the pull down menu still does not show any option. Just to be clear the path I should be putting the file is this, correct?

/worldofdarkness.news/wwwroot/Portals/_default

I also put it here too /worldofdarkness.news/wwwroot/Portals/0

And it still does not pick it up. Any ideas?
tha_watcha
2019-05-02T04:28:35Z
You need to upload the file via the dnn file manager. Or go to the file manager and syncronize the folder with the database. Then the file will appear.
UserPostedImage

About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button

Project Twitter Updates

Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved