Comments (10)
Does it work if you add the translation?
from rich.
I thing there is the bug with quotes after <a translation_missing. And it's everywhere.
<div id="insert-toggle">
<a translation_missing"="" title="<span class=" id="insert-many" href="#" style="display: none;">Insert Many Tip"><span title="translation missing: ru.insert_many" class="translation_missing">Insert Many</span></a>
<a translation_missing"="" title="<span class=" id="insert-one" href="#">Insert One Tip"><span title="translation missing: ru.insert_one" class="translation_missing">Insert One</span></a>
</div>
from rich.
And no, it doesn't.
from rich.
Can you post the same code snippet but then when you add the translation?
from rich.
Problem 1 (There is a problem with deleting an image if File Browser translation strings absent.) appears only if not all string translations present, but 2 and 3 are still here.
Here it is, with translation added:
<!DOCTYPE html>
<html>
<head>
<title>Rich Browser</title>
<link href="/assets/rich/application-d4002039049475be5eb26daa79f9eaac.css" media="screen" rel="stylesheet" type="text/css" />
<script src="/assets/rich/application-e66ba44ea91ec64603769f74f4006563.js" type="text/javascript"></script>
<meta content="authenticity_token" name="csrf-param" />
<meta content="GvV7VgA3gf9stEWK0JFVrOLTy3ibkOOxbY+G/e+HFAI=" name="csrf-token" />
</head>
<body>
<header>
<div id="loading" style="display:none;"></div>
<div id="view-toggle">
<a href="#" id="view-grid" title="<span class="translation_missing" title="translation missing: ru.view_grid_tip">View Grid Tip</span>">Табличный просмотр</a>
<a href="#" id="view-list" title="<span class="translation_missing" title="translation missing: ru.view_list_tip">View List Tip</span>"></a>
</div>
<div id="insert-toggle">
<a href="#" id="insert-many" title="<span class="translation_missing" title="translation missing: ru.insert_many_tip">Insert Many Tip</span>"></a>
<a href="#" id="insert-one" title="<span class="translation_missing" title="translation missing: ru.insert_one_tip">Insert One Tip</span>"></a>
</div>
<ul id="styles" class="scopes">
<li class="label"></li>
</ul>
</header>
<div id="legacy-form"><form accept-charset="UTF-8" action="/rich/files" class="new_rich_file" enctype="multipart/form-data" id="new_rich_file" method="post"><div style="margin:0;padding:0;display:inline"><input name="utf8" type="hidden" value="✓" /><input name="authenticity_token" type="hidden" value="GvV7VgA3gf9stEWK0JFVrOLTy3ibkOOxbY+G/e+HFAI=" /></div>
<p><input id="rich_file_rich_file" name="rich_file[rich_file]" type="file" /></p>
<input name="commit" type="submit" value="Upload" />
</form></div>
<ul id="items">
<li id="uploadBlock">
<div id="upload" class="qq-upload-button placeholder">
<div class="spinner"></div>
</div>
<p></p>
</li>
<li class="clickable">
<img id="file29"
src="http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/029/rich_thumb/monin-20cup.jpg?1349863241"
data-uris="{"thumb":"http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/029/thumb/monin-20cup.jpg","rich_thumb":"http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/029/rich_thumb/monin-20cup.jpg","original":"http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/029/original/monin-20cup.jpg"}"
data-rich-asset-id="29"
data-rich-asset-type="image"
data-rich-asset-name="monin-20cup.jpg"
/>
<p>monin-20cup.jpg</p>
<a href="/rich/files/29" class="delete" data-confirm="<span class="translation_missing" title="translation missing: ru.delete_confirm">Delete Confirm</span>" data-method="delete" data-remote="true" rel="nofollow" title="">delete</a>
</li><li class="clickable">
<img id="file28"
src="http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/028/rich_thumb/dbcup-logo-.png?1349862856"
data-uris="{"thumb":"http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/028/thumb/dbcup-logo-.png","rich_thumb":"http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/028/rich_thumb/dbcup-logo-.png","original":"http://barstyle.s3.amazonaws.com/rich/rich_files/rich_files/000/000/028/original/dbcup-logo-.png"}"
data-rich-asset-id="28"
data-rich-asset-type="image"
data-rich-asset-name="dbcup-logo-.png"
/>
<p>dbcup-logo-.png</p>
<a href="/rich/files/28" class="delete" data-confirm="<span class="translation_missing" title="translation missing: ru.delete_confirm">Delete Confirm</span>" data-method="delete" data-remote="true" rel="nofollow" title="">delete</a>
</li>
</ul>
</body>
</html>
from rich.
Pink is the selection color, it looks like you're selecting everything. Is that the case?
As for the files not deleting, that's part of Paperclip and I'm unable to reproduce. Please try to reproduce in an empty project.
from rich.
@bastiaanterhorst problem is with translation missing in Rich Browser. When I added translation image was successfully deleted.
I'm not sure at the moment how to fix that, but I belive you should reopen this issue.
from rich.
Files don't delete for me either. Any chance on a fix for this? I'm just evaluating this for a project but this bug is a non-starter for me.
from rich.
I'm also getting files not deleting from the S3 bucket. Just tried it on a fresh project/bucket.
from rich.
Calling destroy on the RichFile object in rails console does delete the file, but using the delete button in the asset manager does not, but it does destroy the record. Will investigate further tomorrow
from rich.
Related Issues (20)
- Unable to autoload constant RichInput HOT 20
- undefined method 'has_attached_file' HOT 6
- NoMethodError in Rich::FilesController#index
- Custom toolbar - how create full toolbar
- Rails 4.2, Formtastic 3 HOT 1
- How to use it?
- How to use it?
- How to use it? HOT 1
- Circular dependency issue HOT 5
- I18n for active record
- Milestones: Version 2.0.0 HOT 3
- Pick version with RichFile HOT 1
- CKEDITOR is not defined HOT 2
- MediaEmbed: no button HOT 1
- where to ask for help? -- mailing list, stackoverflow tag, etc HOT 4
- Add title to image
- Disable images upload HOT 1
- Prevent editor from wrap text in paragraph
- Is there a way to use rich with Rails FormBuilder?
- undefined method `new' for "Rack::RawUpload":String HOT 6
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 rich.