Hi all,
pe:ckEditor is a useful editor, thank you for add this to PF.
I have one query:
Currently if I add a text, but it will not create a <span>.......
If I add a font family to the text in the editor, then the HTML code will generated to:
<span style="font-family:Arial,Helvetica,sans-serif;">My Text</span>
Is there any possibility to create always the <span> to the HTML?
Because currently I have the issue, in the Editor it seems fine (from the layout, because the default from the editor.css is font-family:Arial,Helvetica,sans-serif, but if I´m open a <iframe and have a look for the preview, the font family is not the same. The same also, if I save the HTML code into the database and send it later to a client. The client will get the default font (Times New Roman).
Any ideas how this can be solved?
Many thanks
pe:ckEditor -> Default font and wrap all <span to it?
Does this answer your question: https://stackoverflow.com/questions/131 ... n-ckeditor
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
And here is how to set a custom config in CKEDITOR: viewtopic.php?t=20413
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
Thank you, so you want to say:
1) I have to download the config.js and add this to my project?
2) Adjust the config.js (like in your mentioned links)
3) Add in the pe:ckEditor the path to the custom file?
----
Question:
- Which config.js should I use? The JS which I get from PFE from https://mvnrepository.com/artifact/org. ... itor/8.0.4 ?
1) I have to download the config.js and add this to my project?
2) Adjust the config.js (like in your mentioned links)
3) Add in the pe:ckEditor the path to the custom file?
----
Question:
- Which config.js should I use? The JS which I get from PFE from https://mvnrepository.com/artifact/org. ... itor/8.0.4 ?
Primefaces 12.0, WildFly 21
Yep use 8.0.4. and yes you can use example config.js and mess around with it.
Also I created this ticket just now: https://github.com/primefaces-extension ... issues/151
So this will be available to set in PFE 9.0 with font and fontsize attributes.
Also I created this ticket just now: https://github.com/primefaces-extension ... issues/151
So this will be available to set in PFE 9.0 with font and fontsize attributes.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
I don't work for PrimeTek but I heard October was the release date for 9.0 and I usually release PFE that same day.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
Actually read this post. Those 2 values only set the default.
https://stackoverflow.com/a/50907085/502366
https://stackoverflow.com/a/50907085/502366
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
So these default font settings definitely only set the Font Selector to those defaults. They don't automatically wrap your text in that span. I have seen a bunch of suggestions on Stack Overflow how to do what you want but they all seem like workarounds.
PrimeFaces Developer | PrimeFaces Extensions Developer
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
GitHub Profile: https://github.com/melloware
PrimeFaces Elite 13.0.0 / PF Extensions 13.0.0
PrimeReact 9.6.1
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests