Comments (8)
@6temes: For our integration we enabled the image button on SimpleMDE and coded it to open a modal with an image uploader. Once an image was uploaded, it'd embed the md code with the location of the uploaded image. The image doesn't need it's own object, we just used Fae::Image
as there's no real association other than a hardcoded link in the markdown.
Second is if it could be possible to support raw HTML in rich text fields.
Fae doesn't have any built in helpers to output HTML in the textareas, but you can put whatever content in the textareas you want, including HTML. It's up to the frontend to determine how it's parsed.
@ferryphang: I'm sorry but we won't be developing a wysiwyg integration other that the current SimpleMDE. PRs would be considered :)
from fae.
fixed in #224, thanks @6temes!
from fae.
despite us devs prefering MD, a WYSIWYG editor with good image integration is vital to get other team members / clients to think about adopting a cms.
from fae.
This is great news! thanks @6temes
from fae.
Thanks for the feature request, @6temes. We currently use the rich text editor SimpleMDE which supports Markdown and highlights formatting live. It's enabled by using the markdown
option.
fae_input f, :some_text_area, markdown: true
It currently lacks the ability to directly upload and embed images, however we have customized one of our apps to include such a feature. I think I'd only consider a PR if the feature is built on top of SimpleMDE. I'll leave this open as a feature request and look into what it would take to port over our previous integration.
thanks
from fae.
Yeah please support this i need it also 👍 thanks
from fae.
I guess that there two different subjects here:
First is how to upload images and include them in a rich text field. Should those images belong to the model parent model or it is better just have a generic EmbeddedImage
model and throw them there?
Second is if it could be possible to support raw HTML in rich text fields.
from fae.
I prefer the EmbeddedImage way and anyway please add an optional instead of using markdown editor we can use the wysiwyg editor it more common for not tech savy user. God bless
from fae.
Related Issues (20)
- Import data HOT 2
- add dynamic language switching to Fae::StaticPage HOT 1
- add tests to generators
- Thoughts on Rails 6? HOT 10
- Webpacker and Asset Pipeline HOT 1
- User Accounts Enumerable
- Disable "Add" button option on nested_table HOT 1
- Allow update to devise 4.7.1 HOT 2
- Allow update to simple_form 5.0.x HOT 2
- CVE-2019-16109 & CVE-2019-16676 HOT 1
- Can not found fae:install rake HOT 2
- multilingual: Fallback to English if other translation isn't available?
- No image upload field after adding has_fae_image to the model HOT 2
- Slugger for multilingual slugs? HOT 1
- "Deselect all" link gets duplicated on multi-select fields after a nested form update HOT 2
- use symbols for polymorphic route arguments HOT 1
- Rails 7 HOT 6
- Following installation steps throws exception 'Sprockets::Rails::Helper::AssetNotPrecompiledError in Fae::Setup#first_user'
- Sass Dependencies
- ArgumentError in Fae::SetupController#create_first_user after following installation steps + workaround from issue #600 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fae.